Active
Project:
Image Exact Sizes
Version:
4.7.x-1.x-dev
Component:
Miscellaneous
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 May 2006 at 00:28 UTC
Updated:
28 Feb 2007 at 08:34 UTC
when you change the thumbnail size in settings for image module, image module automaticaly resizes the thumbs to new setting but images are not croped by this module
Comments
Comment #1
tayknight commentedThis happens because of the line
if ($node->type == 'image' && $op == 'validate' && variable_get('image_exact_thumbs', 1)) {
When the thumbs are recreated my image.module, no nodeapi $ops are called, so image_exact never gets the chance to work on the thumbs.
Comment #2
Mirrorball commentedThis is why this option should be a part of image.module. I submitted a patch yesterday but the developer deleted it. :(
Comment #3
darren ohMarked issue 73382 as a duplicate of this issue.
Comment #4
darren ohComment #5
zach harkey commentedMarked critical because without this functionality, there's nothing 'exact' about my image sizes, i.e. defeats the whole purpose of the module as I see it.
Comment #6
piotrdesign commentedIts a funny thing that when i import images one by one i have image exact make them as squared thumbnails unlike with the mass import. Is there a way to get the mass imported images to change into squared ones as well?
I made a topic here as well:
http://drupal.org/node/82874
I wasnt sure where to post so i did in 2 places
Comment #7
piotrdesign commentedHere you go guys, lets continue our chat there: http://drupal.org/node/83138
Comment #8
darren ohWe need to keep this issue open to deal with the failure of this module to crop images.
Comment #9
digitalfrontiersmediaI noticed two things in my module. First, I had applied a patch which stopped cropping altogether. Erroneous patch from around line 96:
Should be:
And the second issue was that if the image had one of its two dimensions smaller than the requested resize dimensions, it would skip cropping altogether and simply resize/stretch the image. I think this comes from an "AND" condition for cropping in the IF statement around line 109:
i.e., what if the width is greater than desired but height is not? It skips the cropping procedures (lines 117 & 124) and continues directly on to the Image Resize function around line 128.
Commenting this IF and it's end bracket has now given me actual exact sizes consistently.