Page 1 of 1

Removing edges of a document with shave

Posted: 2009-09-22T02:46:49-07:00
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!

Re: Removing edges of a document with shave

Posted: 2009-09-22T06:50:50-07:00
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!