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.
GIF cropping bug in version 6.4.2-1
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: GIF cropping bug in version 6.4.2-1
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
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
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: GIF cropping bug in version 6.4.2-1
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!!!!
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!!!!
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/