Hi
not sure what i've done wrong... (using fckeditor) the first time i resize an image it works fine... if i then re-resize the same image,it uses the path of the resized image rather than the original image? therefore my images get progressively pixelated...

i searched the closed issues but couldn't find anyone with a similar problem...

my original image is saved to /sites/default/files/[original-file-name]
my resized image is saved to /sites/default/files/resize/[original-file-name]+[image-dimensions]

if i then decide to alter the size of the resized image it uses the path /sites/files/resize/[original-file-name]+[image-dimensions]

drupal 6.x

what other information do you require?

thanks
P.

Comments

p-mal’s picture

Title: second resize uses resizes image » second resize uses previously resized image
p-mal’s picture

Priority: Normal » Critical
philbar’s picture

Dupe: #588676: Multiple instances of the same image all get resized to the width/height of the first image

Yep, this seems like a very serious problem.

Can this be documented on the project page if it cannot be fixed right away?

philbar’s picture

Category: support » bug
quicksketch’s picture

philbar’s picture

I'm using Image Resize Filter 6.x-1.4 and get the following code when using the module:

<img src="/sites/s79253.gridserver.com/files/resize/0335-small-fogger_17-131x105.jpg" alt="" width="131" height="105">

<img class="mceItem" style="float: right;" src="/sites/s79253.gridserver.com/files/resize/0335-small-fogger_17-131x105.jpg" alt="" width="200" height="158">

I want the second image to have: width="200" height="158", but it using the smaller, first image resizing.

Could it have to do with the mceItem problem FileField was having:
#516298: Image Button is not clickable in TinyMCE after inserting image

quicksketch’s picture

philbar, I don't think that issue is related to the problem of incorrectly sized images. However the class "mceItem" is caused by a bug in WYSIWYG module, you should download the latest dev release of WYSIWYG to remove that class, since this bug is still present in the 2.0 version I believe.

philbar’s picture

I'm all up-to-date with the mceItem issue, the example I used is a relic from before the patch made it to my site.

I did some testing on a new page and couldn't recreate the problem.

See this page for an example of the problem (click the anchor links to go to the second images which are having the resizing problem):
http://s79253.gridserver.com/content/bioworld-foggers-and-equipment

quicksketch’s picture

Status: Active » Fixed

Yes, this is a duplicate of the problem described in #480442: Width/height values for differently resized versions of the same image. It's already been fixed but it's only in CVS. I'm fixing the remaining issues in the queue to get ready for a 1.5 release, which will contain the fix.

quicksketch’s picture

Note even after you upgrade, to fix the existing images you will need to edit the node, change the body in some way (add a space or something) for Image Resize Filter to regenerate the images.

philbar’s picture

Thanks! I'm a big fan of your work quicksketch. You are one of the great pioneers on the media front for the drupal project. Keep up the good work.

philbar’s picture