1
I have a folder with hundreds of GIF images. Some are static, and others are dynamic. How can I separate the static GIFs from the dynamic ones?
1
I have a folder with hundreds of GIF images. Some are static, and others are dynamic. How can I separate the static GIFs from the dynamic ones?
1
You can use a free tool called ImageMagick. It can tell you how many images are in the GIF.
identify -format %n~%f\n *.gif
1~120406-00.gif
1~120406-01.gif
1~autonumbering.gif
%n number of images in current image sequence
%f filename (including suffix)
\n newline
The 1 is front indicates how many frames are in the image.
Anything more than 1 we can assume is an animated GIF.
it doesn't work with non-ASCII names. I'll try to check encoding. but everything else is working fine, thanks – TarasPro – 2014-10-07T22:05:25.653
Sorry, I do not have any non-ASCII names to try out on my end. – Sun – 2014-10-07T22:07:20.493
It works! Just encoding issue – TarasPro – 2014-10-07T22:24:36.540
Since you want it for Windows, this is not a duplicate: http://stackoverflow.com/questions/3752621/how-do-i-determine-if-a-gif-is-animated
– Sun – 2014-10-07T21:04:23.450