Page 1 of 1

shave from the top

Posted: 2012-01-30T14:41:54-07:00
by dgmufasa
Hello all,

I am trying to shave the sides and top from an image. I have the following:
convert corrected_shave.jpg -shave 130x170+10+10 out_shave.jpg

which shaves from the left, right and bottom.

But not the top.

How can I change this so that the top is shaved off?

TIA

Re: shave from the top

Posted: 2012-01-30T14:59:18-07:00
by fmw42
untested as I don't have your original image nor its size, but try

convert corrected_shave.jpg -shave 130x170-10+10 out_shave.jpg

If that does not work, then

convert corrected_shave.jpg -shave 10x0 -chop 0x10 out_shave.jpg

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

Re: shave from the top

Posted: 2012-01-31T07:21:28-07:00
by anthony
Shave does not use +X+Y part of the geometry argument!

See examples
http://www.imagemagick.org/Usage/crop/#shave