Page 1 of 1
Determine if GIF is animated
Posted: 2007-10-06T11:16:17-07:00
by goldfinger
Hi,
I need help with a command line to determine whether a .gif image is animated.
I found a solution on the web "identify -format" and if frames > 1 it's animated.
But for some reason this command didn't recognize all animated gifs, especially
"glitter" gifs were skipped.
Would appreciate your help here.
Thanks,
Avi
Re: Determine if GIF is animated
Posted: 2007-10-07T09:12:15-07:00
by sevasjack
I have used
%n - number of scenes, if more than 1 (one) then its animated 100%!
Re: Determine if GIF is animated
Posted: 2007-10-07T09:39:36-07:00
by goldfinger
sevasjack wrote:I have used
%n - number of scenes, if more than 1 (one) then its animated 100%!
This is exactly what I tried, but it skipped many... uhmmm...
I'll try it again. Thanks
Re: Determine if GIF is animated
Posted: 2007-10-08T22:23:08-07:00
by anthony
Are you sure those images were animated. ALL animationed images must have two or more frames. It is there nature.
If you have an example of a animation that it 'skipped' can you port a URL to it?
Glitter is something that I have been meaning to add to IM examples. though there are about a half a dozen ways you can add glitter. Most of them maskes the stars to the area being glittered, making them look 'unreal'.
Re: Determine if GIF is animated
Posted: 2007-10-12T04:42:51-07:00
by goldfinger
I tried this again, and everything worked just fine.
I suppose I must have made a mistake with the code in the first try.
Thank you