Finding animated gifs
Moderators: white, Hacker, petermad, Stefan2
Finding animated gifs
I have a large number of gif files, and would like to identify those that are animated.
Is there some tell-tale clue on the inside that only animated gifs would have? Anything I can search for to find them?
Thanks!
Is there some tell-tale clue on the inside that only animated gifs would have? Anything I can search for to find them?
Thanks!
Re: Finding animated gifs
Tricky. Additionally search for text
while searching for GIF files - check "Find text". type NETSCAPE
More precisely it's
but NETSCAPE alone should be enough.
Code: Select all
NETSCAPE
More precisely it's
Code: Select all
NETSCAPE2.0
Re: Finding animated gifs
Interesting. So the word NETSCAPE (all caps) occurs in all animated gifs, and in no non-animated?
Re: Finding animated gifs
Darn it, Gral, found some animated gifs that don't include that word. But thanks anyway.
Wonder if there's some other tell-tale sign....
Wonder if there's some other tell-tale sign....
Re: Finding animated gifs
This method isn't 100% sure, but usually works.
Re: Finding animated gifs
Searching for "NETSCAPE" it's not 100% reliable, true.
By the way - all my animated gifs contains this, but some non-animated contains this too, so sometimes non-animated gifs are finded too.
So, another trick - it's search for multiframe gifs in fact.
You need GIF packer plugin https://totalcmd.net/plugring/gifwcx.html
Instal for GIF extension
Now search for ALL GIFs, simple search, no additional conditions, feed to listbox.
Select all files.
Invoke second search, ensure "Only search in selected directories/files" is checked, also check "Search archives (all except for UC2)"
In "Search for" type:
Frame1.gif Frame01.gif Frame001.gif Frame0001.gif Frame00001.gif Frame000001.gif
(expect you have no gifs with 1 000 000 or more frames)
As frames count starting from "0", this is in fact search for second frame.
After search complete, press "Fedd to listbox" - now you have list all multiframe gifs, what in most cases equals to animated gifs.
Note: in theory you can do this in one step, but this causes search through all archives: zips, rars, 7zips ans so on.
By the way - all my animated gifs contains this, but some non-animated contains this too, so sometimes non-animated gifs are finded too.
So, another trick - it's search for multiframe gifs in fact.
You need GIF packer plugin https://totalcmd.net/plugring/gifwcx.html
Instal for GIF extension
Now search for ALL GIFs, simple search, no additional conditions, feed to listbox.
Select all files.
Invoke second search, ensure "Only search in selected directories/files" is checked, also check "Search archives (all except for UC2)"
In "Search for" type:
Frame1.gif Frame01.gif Frame001.gif Frame0001.gif Frame00001.gif Frame000001.gif
(expect you have no gifs with 1 000 000 or more frames)
As frames count starting from "0", this is in fact search for second frame.
After search complete, press "Fedd to listbox" - now you have list all multiframe gifs, what in most cases equals to animated gifs.
Note: in theory you can do this in one step, but this causes search through all archives: zips, rars, 7zips ans so on.
Re: Finding animated gifs
Wow, Gral, that is awesomely clever! Will try it shortly and let you know what happens.
Re: Finding animated gifs
I found probably even better way - "WDX for Images" content plugin https://totalcmd.net/plugring/wdx4i.html can search for number of images inside GIFs.
So instal it and invoke search with plugins
Plugins tab
Search in plugins
Plugin: wdx4i
Property: images
OP: >
Value: 1
So instal it and invoke search with plugins
Plugins tab
Search in plugins
Plugin: wdx4i
Property: images
OP: >
Value: 1
Re: Finding animated gifs
Okay, I tried it and the second search resulted in nothing, though there were indeed a few animated gifs found in the first search. I then tried the second search multiple times, choosing different options (Regex, Unicode, etc.), but I got zero results each time.
I checked my Plugins, and the new one is indeed there, and properly associated with .gifs.
Any idea what I'm doing wrong?
I checked my Plugins, and the new one is indeed there, and properly associated with .gifs.
Any idea what I'm doing wrong?
Re: Finding animated gifs
Your even better way is PERFECT! Works like a charm. Thanks so much, Gral!