Page 1 of 1

Thumbnails stopped working

Posted: 2009-09-21T14:05:56-07:00
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.

Re: Thumbnails stopped working

Posted: 2009-09-21T14:11:41-07:00
by fmw42
-gravity was not supported with -extent until v6.3.2

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

Re: Thumbnails stopped working

Posted: 2009-09-21T14:21:35-07:00
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?

Re: Thumbnails stopped working

Posted: 2009-09-21T14:48:46-07:00
by vbsaltydog
Updating to the latest version of ImageMagick solved the issue.

Thank you.