OT: ImageInfo or some other tool to detect Animated Gifs.

Greg Borders gborders at jlewiscooper.com
Tue Oct 17 21:34:38 IST 2006


Duncan, Brian M. wrote:
>
> So if there was a way to detect GIF's that contain offset frames that
> would be great. (Through something like ImageInfo.pm)
I've used imagemagick's "identify"command at shell level to pull info 
out about graphics images in the past.
A quick test of an animated gif gives this result:

[root at mailbox]# identify test.gif
test.gif[0] GIF 300x300 300x300+0+0 PseudoClass 256c 8-bit 87.1406kb
test.gif[1] GIF 300x300 300x300+0+0 PseudoClass 256c 8-bit 87.1406kb
test.gif[2] GIF 300x300 300x300+0+0 PseudoClass 256c 8-bit 87.1406kb
test.gif[3] GIF 300x300 300x300+0+0 PseudoClass 256c 8-bit 87.1406kb
test.gif[4] GIF 300x300 300x300+0+0 PseudoClass 256c 8-bit 87.1406kb

Displays info about each frame.  Feed that to a wc line count and you 
get a frame count in your image:

[root at mailbox]# identify test.gif | wc -l
5

The "identify -verbose" command gives even more detailed info for adding 
to SA rules.

Hope you can use this info!

Greg. Borders
Sys. Admin.
JLC Co.

--
This transmission may contain information that is privileged, confidential
and/or exempt from disclosure under applicable law. If you are not the
intended recipient, you are hereby notified that any disclosure, copying,
distribution, or use of the information contained herein (including any
reliance thereon) is STRICTLY PROHIBITED. If you received this transmission
in error, please immediately contact the sender and destroy the material in
its entirety, whether in electronic or hard copy format. Thank you.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the MailScanner mailing list