Linux.com

Re:cropping

Posted by: Anonymous Coward on August 07, 2006 10:33 PM

The command is not correct for cropping. Try this:

convert -crop WxH+0+0 filename.ps filename.jpg

...where W is the width you want to end up with, and H is the height. The '+0+0' is the offset, the starting point for the crop (upper left corner of the image). If you don't include an offset you get a series of 'tile images', each the size of the WxH.

If you follow the article and use '-crop 0x0', nothing is cropped.

#

Return to CLI Magic: Make instant Web banners from the command line