Is there anyway to know gif animation sequence?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
stanleyweike

Is there anyway to know gif animation sequence?

Post by stanleyweike »

When I read a animate gif into memory, is there any programming api to know how each frame inside this gif file be played in terms of sequence? like a gif have 5 frames, it is played like 1->2->4. How could I retrieve this information?

thanks
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

Gif only plays in the order given with a posible loop to start at the end.

It can NOT skip, jump, or reverse the order of the frames. It isn't a DVD after all.

For more look at Animation Basics in IM Examples
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply