in reply to CGI file uploads

The animated image you are talking about are probably animated GIFs. An animated GIF is a file valid under the GIF89a spec, which you can get some info about here .

The module Image::ParseGIF can break a GIF down into its component images and allow you to detect and reject animations.

use Image::ParseGIF; $gif = new Image::ParseGIF ("image.gif") or die "failed to parse: $@\n +"; print "Multiple parts\n" if $gif->parts > 1;

-Mark

Replies are listed 'Best First'.
Re: Re: CGI file uploads
by Anonymous Monk on Feb 27, 2004 at 06:45 UTC
    Thanks for your suggestion. I looked into that and I have 2 questions. First one being, is it possible to rearrange the frames with this module to create a brand new animation? Second being, is it possible for just a normal Perl/CGI function to figure out if it's animated or not? I don't mind using modules, but I doubt anyone who'd use my source has ever heard of or will have this module already installed.