resizing and padding problem in Centos 5.4
Posted: 2009-10-24T15:05:50-07:00
Hi --
Help, please! I have having a heck of a time getting convert to resize and pad out an image.
Centos 5.4.
ImageMagick.i386 0:6.2.8.0-4.el5_1.1
The background is staying black and the original image is not centered.
Original:
http://www.outdoorkids.com/images/swatc ... DN-BLK.jpg
Output
http://www.outdoorkids.com/images/swatc ... -BLK_1.jpg
Here is the command I used:
convert PAAAAAAAELALCFDN-BLK.jpg -resize 300X300 -background white -extent 300X300 -gravity center PAAAAAAAELALCFDN-BLK_1.jpg
Thank you,
-Ben
Help, please! I have having a heck of a time getting convert to resize and pad out an image.
Centos 5.4.
ImageMagick.i386 0:6.2.8.0-4.el5_1.1
The background is staying black and the original image is not centered.
Original:
http://www.outdoorkids.com/images/swatc ... DN-BLK.jpg
Output
http://www.outdoorkids.com/images/swatc ... -BLK_1.jpg
Here is the command I used:
convert PAAAAAAAELALCFDN-BLK.jpg -resize 300X300 -background white -extent 300X300 -gravity center PAAAAAAAELALCFDN-BLK_1.jpg
Thank you,
-Ben