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

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
konstantin
Posts: 50
Joined: 2013-08-07T13:50:31-07:00
Authentication code: 6789

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

Post 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?
User avatar
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?

Post 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
Post Reply