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?
How can I crop / remove 11 pixels of each side?
-
- Posts: 50
- Joined: 2013-08-07T13:50:31-07:00
- Authentication code: 6789
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: How can I crop / remove 11 pixels of each side?
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
http://www.imagemagick.org/Usage/crop/#shave
http://www.imagemagick.org/Usage/crop/#chop