Page 1 of 1

Posted: 2006-10-31T20:12:27-07:00
by anthony
You may like to try
-resize 250x9999

Posted: 2006-11-01T17:23:53-07:00
by anthony
If your crop is centered, unstead of calculating the offset just ask IM to do a centered crop...

Code: Select all

convert filename.jpg -resize 250x9999 -gravity center -crop 250x104+0+0 filename.jpg 
WARNING:
If you have the posibility of saving to some other image format than JPEG then also add a
+repage after the crop to remove any virtucal canvas and offset information. JPEG format does not save that info, but it may cause problems for formats like PNG, and definateally will cause problems for formats like GIF, which use such info for animation purposes.