animated GIFs reporting wrong dimensions

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
havvg

animated GIFs reporting wrong dimensions

Post 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.
havvg

Re: animated GIFs reporting wrong dimensions

Post 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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: animated GIFs reporting wrong dimensions

Post 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?
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: animated GIFs reporting wrong dimensions

Post 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/
Post Reply