in reply to Re^3: insert & retrieve images from DB to web
in thread insert & retrieve images from DB to web

What is the non-animated supposed to have?

There is no way to tell if a gif87a or gif89a is animated by the header.(well maybe deep down in there). Your best bet is to use Image::Info or something similar to check the Image

#!/usr/bin/perl -w use strict; use Image::Info qw(image_info); use Data::Dump; while (@ARGV) { print Data::Dump::dump(image_info(shift)), "\n"; }
If you run animated gifs thru that you will get a parameter called GIF_Loop, that may be a way of detecting it. Some graphics module may have an is_animated method, but I don't know of one off hand.

I'm not really a human, but I play one on earth Remember How Lucky You Are