I have an image that I can't get it cropped properly. Before cropping, identify output is : GIF 255x140 255x140+0+0 8-bit sRGB 128c 10.4KB 0.000u 0:00.000
after cropping with command: convert -crop 200x140+0+0, identify output is: GIF 200x140 255x140+0+0 8-bit sRGB 128c 8.65KB 0.000u 0:00.000
Could someone give me a hint? Thanks.
crop question
Re: crop question
Have you tried adding a +repage after the crop?
Re: crop question
thanks for your reply. I tried convert -crop 200x140+0+0 +repage & convert +repage -crop 200x140+0+0, did not help
Re: crop question
actually, the first one works. Thanks.
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: crop question
You should also read your image before the crop... If you don't it WILL break in IMv7.
Code: Select all
convert input.png -crop ... +repage output.png
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/