Page 1 of 1

crop question

Posted: 2013-04-16T13:39:11-07:00
by yvonne
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.

Re: crop question

Posted: 2013-04-16T13:43:36-07:00
by Bonzo
Have you tried adding a +repage after the crop?

Re: crop question

Posted: 2013-04-16T13:51:32-07:00
by yvonne
thanks for your reply. I tried convert -crop 200x140+0+0 +repage & convert +repage -crop 200x140+0+0, did not help

Re: crop question

Posted: 2013-04-16T14:01:04-07:00
by yvonne
actually, the first one works. Thanks.

Re: crop question

Posted: 2013-04-16T20:07:27-07:00
by anthony
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