Page 1 of 1

Posted: 2006-09-07T10:59:38-07:00
by Bonzo
Give this a go:

Code: Select all

convert img1.jpeg -crop 480x480+160+160 +repage img2.jpeg
I would have thought you could probably use -gravity center but I am not sure how.

Posted: 2006-09-07T18:25:07-07:00
by anthony
Better to do a centered crop...

Code: Select all

convert img1.jpeg -gravity center -crop 480x480+0+0 +repage img2.jpeg 
If on the other hand you are resizing the image to size a 480x480 box with edges clipped then you can use the formulas given in IM Examples
Thumbnails, Cut the Image to Fit
http://www.cit.gu.edu.au/~anthony/graph ... nails/#cut