Finding animated gifs

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Andante
Junior Member
Junior Member
Posts: 41
Joined: 2018-01-31, 01:38 UTC

Finding animated gifs

Post by *Andante »

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!
User avatar
Gral
Power Member
Power Member
Posts: 1467
Joined: 2005-01-26, 15:12 UTC

Re: Finding animated gifs

Post by *Gral »

Tricky. Additionally search for text

Code: Select all

NETSCAPE
while searching for GIF files - check "Find text". type NETSCAPE
More precisely it's

Code: Select all

NETSCAPE2.0
but NETSCAPE alone should be enough.
Andante
Junior Member
Junior Member
Posts: 41
Joined: 2018-01-31, 01:38 UTC

Re: Finding animated gifs

Post by *Andante »

Interesting. So the word NETSCAPE (all caps) occurs in all animated gifs, and in no non-animated?
Andante
Junior Member
Junior Member
Posts: 41
Joined: 2018-01-31, 01:38 UTC

Re: Finding animated gifs

Post by *Andante »

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....
User avatar
Gral
Power Member
Power Member
Posts: 1467
Joined: 2005-01-26, 15:12 UTC

Re: Finding animated gifs

Post by *Gral »

This method isn't 100% sure, but usually works.
User avatar
Gral
Power Member
Power Member
Posts: 1467
Joined: 2005-01-26, 15:12 UTC

Re: Finding animated gifs

Post by *Gral »

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.
Andante
Junior Member
Junior Member
Posts: 41
Joined: 2018-01-31, 01:38 UTC

Re: Finding animated gifs

Post by *Andante »

Wow, Gral, that is awesomely clever! Will try it shortly and let you know what happens. :-)
User avatar
Gral
Power Member
Power Member
Posts: 1467
Joined: 2005-01-26, 15:12 UTC

Re: Finding animated gifs

Post by *Gral »

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
Andante
Junior Member
Junior Member
Posts: 41
Joined: 2018-01-31, 01:38 UTC

Re: Finding animated gifs

Post by *Andante »

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?
Andante
Junior Member
Junior Member
Posts: 41
Joined: 2018-01-31, 01:38 UTC

Re: Finding animated gifs

Post by *Andante »

Your even better way is PERFECT! Works like a charm. Thanks so much, Gral!
Post Reply