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
shave from the top
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: shave from the top
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
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
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: shave from the top
Shave does not use +X+Y part of the geometry argument!
See examples
http://www.imagemagick.org/Usage/crop/#shave
See examples
http://www.imagemagick.org/Usage/crop/#shave
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/