Removing edges of a document with shave

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
boromb
Posts: 17
Joined: 2009-01-29T03:20:34-07:00

Removing edges of a document with shave

Post by boromb »

Hello!

I wonder if someone can help me remove amount of edges of a image.

I have for example Jpg image that I want to "shave" and remove for example 10px from left and
15px from right. 10px from top and 25pc from bottom?

I have found the syntax but for "shave" but I can't find exactly what I want :)

Code: Select all

convert border.gif -shave 10x10 shave.gif
Is it possible to do what I want?

Best regards!
boromb
Posts: 17
Joined: 2009-01-29T03:20:34-07:00

Re: Removing edges of a document with shave

Post by boromb »

I have solved my problem.
I'm working with documents that have been scanned in and I wanted to remove
all unnecessary "white" space before showing.
The -trim function doesn't work very well in this situations.

Everything explained on following page
http://www.imagemagick.org/Usage/crop/#trim_blur

Best regards!
Post Reply