Oct 15 2007
∞
CROPPING: imagemagick and drupal crop
the image.imagemagick.inc file that comes with the Image module appears to have (what I think) is a minor bug — the crop command does not use the viewport setting (!). This means that cropped gifs and other files which do not discard canvas info post-crop will retain their original size (although image information OUTSIDE of the crop will appear blank) rather than having their overall size reduced. My guess is most people are expecting the latter (I was!).
Fortunately, it’s a simple fix. on line 97 of the current image.imagecache.inc file, change:
$filter = ' -crop '. $width .'x'. $height .'+'. $x .'+'. $y;
to
$filter = ' -crop '. $width .'x'. $height .'+'. $x .'+'. $y.'!';