Page 1 of 1

a problem with gif frames size.

Posted: 2008-08-11T03:35:08-07:00
by sunng1
hi

I'm reading a gif picture,
and I found that the first frame is the same size with what I saw in the property of the gif picture(for example 128X128), but the second frame is different(for example 99X110), so does the third frame;

so, I want to get all frames of the gif picture, and I also want all the frames are the same size with the first frame

there is a function called "CoalesceImages", I tried it , it does do what I want to,
but, Is this method right?, Is there ant other better method?

thanks!

Re: a problem with gif frames size.

Posted: 2008-08-11T10:13:35-07:00
by fmw42
animation files are not individual full frames, but updates, as far as I know. so you need to use -coalesce to recomposite them properly for viewing/extracting. So yes, you need to use -coalesce. Sorry I am not familiar with the API version.

See http://www.imagemagick.org/Usage/anim_basics/#coalesce