Hello,
This module is going to make me crazy !
I have been using it with WYSIWYG (and Thickbox) and it was working "pretty much" ; in fact, I was in the situation described here http://drupal.org/node/293909 : it was displaying only thumbnail (after saving the node the first time, the image size were set to 0 so Drupal "took" the smallest possible size). That was not perfect, but it could be sufficient before a solution was found.
Yesterday, I updated the module (I guess I was using 2.x.alpha3). I also updated Drupal (6.14 -> 6.15) and several modules, among them Image and Views.
And now, the images appear as "original size", despite I didn't change anything in configuration :
- format is full HTML and "Inline image" is checked,
- WYSIWYG plugin is checked,
- maximum inline image size allowed is set to "300x640" (which means original size cannot be inserted unless it's smaller)
- default size for inline images is preview
- Default insert mode is Filter tag...
What I don't understand is that the node source in database looks like
[img_assist|nid=153|title=test|desc=|link=node|align=left|width=300|height=302]
(which is very good)
the HTML source in editor is
<img class="mceItem" src="/index.php?q=image/view/153" alt="nid%3D153%7Ctitle%3Dtest%7Cdesc%3D%7Clink%3Dnode" title="test" name="mceItemDrupalImage" align="left" border="0" height="302" width="300">
and the source in browser (Firefox) is
<p><span class="inline inline-left"><a href="/images/test"><img src="http://www.laroulante.fr/system/files/images/plan_du_metro.gif" alt="test" title="test" class="image image-_original " width="1134" height="1143" /></a><span class="caption" style="width: 1132px;"><strong>test</strong></span></span></p>
<div class="image-clear"></div>
I don't know what to do...
Thanks for help !
Comments
Comment #1
joecanti commentedI didn't get on with image assist so i use IMCE now - it works well and integrates well with the main editors...I have the wysiwig module running tinyMCE, the IMCE module and the IMCE wysiwyg module to link the 2 - it allows my users to easily upload photos into content and do basic resizing....
For any auto resizing/views stuff I use the imagecache as laid out in this excellent video: http://drupaltherapy.com/imagecache
cheers, joe
Comment #2
iko commentedI know IMCE but for some reasons I would like to keep Image Assist.
Comment #3
Big Z commentedWhen working out which image size to use the alpha 4 version doesn't fully take into account only one dimension (width or height) need be specified for an image derivative. The latest dev version (9 Jan 2010) fixes this problem, but still contains a little bug.
Line 1171 of img_assist.module looks like:
if (!$height_std && ($width_std && round($width_std / $aspect_ratio) <= $height_std)) {I think the first logical AND operator should actually be logical OR, hence
if (!$height_std || ($width_std && round($width_std / $aspect_ratio) <= $height_std)) {Could a project maintainer please confirm the above so it can be fixed in the next release?
Many thanks.
P.S. Remember to clear the filter cache after making the above change.
Comment #4
iko commentedHi Big Z
Sorry for the delay !
1) the problem "display original size instead of preview" is fixed in -dev release, as downloadable now (wed. 13, 19 pm in Paris, France) ; this release displays thumbnail instead of preview.
2) after making the little change (and clearing the filter cache), the preview appears (tadaaa!) so, the problem "Always adds thumbnail only" (http://drupal.org/node/293909) seems to be fixed as well ! (you must be a genius ;-))
It's OK for me !
Thank you !
Comment #5
Anonymous (not verified) commentedI have had the same issue, tried the solution and now it works like a charm. I used the latest dev module, i.e. 2010-Apr-08.
Comment #6
sunThanks for reporting, reviewing, and testing! Committed the change in #3 to all branches.
A new development snapshot will be available within the next 12 hours. This improvement will be available in the next official release.