Page 1 of 1

Help: query to identify image files that are "animations"

PostPosted: Sun Jul 22, 2018 5:54 pm
by spin
Greetings,

What would be the optimal query syntax to identify (select) an image file that actually is an animation (as in .gif and .png) versus a standard static image file. Based on the image's frame count?

... as in a query for PDF that have no "text" inside = not OCRed...

Code: Select all
   #! /bin/bash
   if ! grep Font "$1"
   then
        exit 0
   else
        exit 1
   fi


Thanking you in advance for your assistance with this.
/sp

Re: Help: query to identify image files that are "animations

PostPosted: Mon Jul 23, 2018 12:18 pm
by Mr_Noodle
This is a bit outside of Hazel support but maybe someone else here can help. I can't think of anything off-hand but I suggest looking at commandline programs that might help. Maybe something like imagemagick.