shave from the top

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
dgmufasa
Posts: 1
Joined: 2012-01-30T14:34:27-07:00
Authentication code: 8675308

shave from the top

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: shave from the top

Post 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
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: shave from the top

Post by anthony »

Shave does not use +X+Y part of the geometry argument!

See examples
http://www.imagemagick.org/Usage/crop/#shave
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply