I'm having a problem with the cropping of GIF files (and only GIF files). I am using ImageCache to make 2 thumbnails for user picture uploads, and my presets both first scale the image then crop it. However, with GIF files only, the cropping step doesn't seem to run - only the scale step. With JPGs, both scale/crop work fine, and I end up with square thumbnails every time, regardless of what the original dimensions are. Any ideas?

Comments

tj2653’s picture

To update this issue, the problem with the cropping of GIF files only happens to me when I'm using the ImageMagick Toolkit. When I switch to the Built-in GD2 toolkit, it works properly.

The GIF thumbnail should turn out to be 125x125 (using ImageCache Profiles, which first scales and then crops), but it comes out with the width larger than the height, and with transparent borders on the left and right side. I'm running ImageMagick 6.0.7. I've duplicated the issue here: http://drupal.org/node/219929 with some additional details and sample pics.

tj2653’s picture

I have the same issue using a different Drupal installation that has ImageMagick 6.2.8.

drewish’s picture

you might try the imagemagick toolkit in a recent version of the image module and see if that helps.

tj2653’s picture

Hi drewish,

I'm using a patched version (with the viewport crop fix) of image.imagemagick.inc v 1.3.2.14, which is the same as what is in the latest version bundled with image-5.x-1.x-dev (2/13/08).

Thanks

drewish’s picture

also might want to see about upgrading imagemagick. they're up to 6.3.* now...

tj2653’s picture

Yes, I updated to the latest ImageMagick 6.3.8 02/12/08 release last night, and it still didn't help :( I'm wondering if it's just my installation, or if other people have the same issue, but haven't tested that particular case yet. I might end up building a new Drupal installation and test each piece one by one to see if I can identify where the problem is coming from.

tj2653’s picture

UPDATE: I believe it's working now. Not exactly sure what did it, as I did a few things, but two things I definitely needed were the patch in http://drupal.org/node/183688 and a current version of IM. Thanks!

tj2653’s picture

Category: bug » support
Status: Active » Closed (fixed)