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
Determine if GIF is animated
Re: Determine if GIF is animated
I have used
%n - number of scenes, if more than 1 (one) then its animated 100%!
Code: Select all
identify -format "%n" image.gif
Re: Determine if GIF is animated
This is exactly what I tried, but it skipped many... uhmmm...sevasjack wrote:I have used%n - number of scenes, if more than 1 (one) then its animated 100%!Code: Select all
identify -format "%n" image.gif
I'll try it again. Thanks
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Determine if GIF is animated
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'.
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'.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
Re: Determine if GIF is animated
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
I suppose I must have made a mistake with the code in the first try.
Thank you