Page 1 of 1

animated GIFs reporting wrong dimensions

Posted: 2010-06-07T06:54:42-07:00
by havvg
Hi there,

I got a strange bug here.
This zip file contains three animated gifs: http://dl.dropbox.com/u/548684/image_magick_bug.zip
The images are reporting wrong dimensions. (e.g. 249x72 instead of 300x225). Each frame itself equals the overall (wrong) dimensions.

Re: animated GIFs reporting wrong dimensions

Posted: 2010-06-07T07:32:11-07:00
by havvg
some more infos, sorry about the delay:

ImageMagick 6.6.1-5 2010-05-05 Q16
Mac OS X Snow Leopard 10.6.3

Re: animated GIFs reporting wrong dimensions

Posted: 2010-06-07T08:55:44-07:00
by snibgo
On Windows7, IM 6.6.0-8, I get:

identify kfz_300_225.gif
kfz_300_225.gif[0] GIF 300x225 300x225+0+0 8-bit PseudoClass 128c 24.2KB 0.000u0:00.000
kfz_300_225.gif[1] GIF 279x167 300x225+5+58 8-bit PseudoClass 128c 24.2KB 0.000u 0:00.031
kfz_300_225.gif[2] GIF 249x72 300x225+21+70 8-bit PseudoClass 128c 24.2KB 0.000u 0:00.046

Do you get something different?

Re: animated GIFs reporting wrong dimensions

Posted: 2010-06-07T09:43:07-07:00
by fmw42
gif animations can have any size frames as some are just updates. to make all frames the same size use -coalesce.

see animation information at

http://www.imagemagick.org/Usage/anim_basics/
and in particular
http://www.imagemagick.org/Usage/anim_basics/#coalesce

also
http://www.imagemagick.org/Usage/anim_opt/
http://www.imagemagick.org/Usage/anim_mods/