Page 1 of 1

Re: How can I detect that a gif is animated?

Posted: 2008-01-31T22:53:31-07:00
by anthony
An animated GIF has multiple image frames.

Of course not all multiple frame GIF images are ment to be animated. I sometimes use it as a image archive for non-animation purposes. But that is a special case.
In general the above is true.

As such..

Code: Select all

  identify -format %n  posible_animation.gif
will tell you the number of frames in the image file format.