Animated gif, setImagePage incorrect after crop
Posted: 2012-02-27T19:44:47-07:00
I'm cropping animated GIFs and the result of some of them is incorrect. Everything I've found says that setting the Page should fix it but it doesn't.
Source Image:
Result Image: (Note the extra transparent area)
I've tried:
- setImagePage before coalesceImages
- setImagePage after deconstructImages
- using the setPage function
- Saving the image, loading it again and recropping it (does nothing)
- doing setImagePage(0, 0, 0, 0)
- doing setImagePage(null, null, null, null)
Notes:
- If I also resize the result smaller, things work fine.
- ImageMagick claims the resulting image is the right size.
Details:
Example: http://mafiareturns.com/admin/matt_stuf ... k/crop.php
Source: http://pastebin.com/J02KqTrw
ImageMagick Version: ImageMagick 6.7.5-3 2012-02-24 Q16 http://www.imagemagick.org
PHP Extension Version (Gentoo package): dev-php/pecl-imagick version 3.0.0-r1
OS: Gentoo
Edit://Oops.
Source Image:
Result Image: (Note the extra transparent area)
I've tried:
- setImagePage before coalesceImages
- setImagePage after deconstructImages
- using the setPage function
- Saving the image, loading it again and recropping it (does nothing)
- doing setImagePage(0, 0, 0, 0)
- doing setImagePage(null, null, null, null)
Notes:
- If I also resize the result smaller, things work fine.
- ImageMagick claims the resulting image is the right size.
Details:
Example: http://mafiareturns.com/admin/matt_stuf ... k/crop.php
Source: http://pastebin.com/J02KqTrw
ImageMagick Version: ImageMagick 6.7.5-3 2012-02-24 Q16 http://www.imagemagick.org
PHP Extension Version (Gentoo package): dev-php/pecl-imagick version 3.0.0-r1
OS: Gentoo
Edit://Oops.