Page 1 of 1

How can I crop / remove 11 pixels of each side?

Posted: 2014-06-30T10:46:56-07:00
by konstantin
I would like to remove 11 pixel on the left, top, and right side and 42 of the bottom side.
I can't use crop, because every image has a different size. Is there an option, like -crop2 11x11-11-42 ?
Or should I write a script which determine the size of each images and compute the usual "-crop" parameters?

Re: How can I crop / remove 11 pixels of each side?

Posted: 2014-06-30T11:44:58-07:00
by fmw42
see -shave and -chop. you can combine them to do what you want.


http://www.imagemagick.org/Usage/crop/#shave
http://www.imagemagick.org/Usage/crop/#chop