Thumbnails stopped working

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
vbsaltydog

Thumbnails stopped working

Post by vbsaltydog »

I was using the following code to create resized, centered thumbnails of gif images under ImageMagick 6.3.7 11/18/07 Q16

Code: Select all

convert $localfile -thumbnail '100x100' -background white -gravity center -extent 100x100 $product_category_img
Then I moved to a 64bit version of CentOS 5.2 from the 32bit version of Centos 4.x and to a different version of ImageMagick ImageMagick 6.2.8 04/17/08 Q16 and my thumbnails no longer center and the padding is black, no matter what color I define in the convert command.

Please help.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Thumbnails stopped working

Post by fmw42 »

-gravity was not supported with -extent until v6.3.2

see http://www.imagemagick.org/Usage/crop/#extent
vbsaltydog

Re: Thumbnails stopped working

Post by vbsaltydog »

Thanks. I wanted to stay with a binary install for ease of management but since there is no 64bit binary of the latest version for my OS, I am building the install from source right now and I will re-test if the install goes well. Do you know if the source build writes a log of files added to the system for uninstall/upgrade if needed?
vbsaltydog

Re: Thumbnails stopped working

Post by vbsaltydog »

Updating to the latest version of ImageMagick solved the issue.

Thank you.
Post Reply