a problem with gif frames size.

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
sunng1

a problem with gif frames size.

Post 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!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: a problem with gif frames size.

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