Page 1 of 1

GIF cropping bug in version 6.4.2-1

Posted: 2008-07-15T04:11:57-07:00
by 3eka
Hello!

When i crop GIF image the cropping occurs (visually), but the actual picture size stays the same and the area that should be cropped is filled with transparent color.
This happens on both static and animated GIF files.

When i use the same command to JPG file - everything works fine.

The command line is:
C:/IM/convert -quality 90 -crop 206x206+57+0 "D:/projects/abcdefgh!/proto/images/avatars/temp/in1.jpg" "d:/projects/abcdefgh!/proto/images/avatars/z/in1_l.jpg" 2>&1

The source GIF file is here (original size 302x206 px):
http://3eka.com/filez/in1.gif

I test it on Windows XP platform.

Re: GIF cropping bug in version 6.4.2-1

Posted: 2008-07-15T10:12:57-07:00
by fmw42
I don't know if that is a bug or not as I get the same problem with

convert in1.gif[206x206+57+0] out1.gif


but you can add +repage to your command and it should work.

convert in1.gif -crop 206x206+57+0 +repage out1.gif

Re: GIF cropping bug in version 6.4.2-1

Posted: 2008-07-16T00:36:44-07:00
by anthony
This is NOT an error!!!!

CROP does not change a GIF canvas size, only the actual image size.
Add a +repage to remov ethe virtual canvas (used for layering and image animations).

See IM examples, Crop. Read it!!!!

Re: GIF cropping bug in version 6.4.2-1

Posted: 2008-07-16T05:10:11-07:00
by 3eka
Thanks!