Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Image::Magick - animated GIF

by nejcPirc (Acolyte)
on Jan 28, 2005 at 12:58 UTC ( [id://425936]=perlquestion: print w/replies, xml ) Need Help??

nejcPirc has asked for the wisdom of the Perl Monks concerning the following question:

Hello frieds
Do you know how to recognize ANIMATED GIF and NON-ANIMATED GIF(when uploading)?
I tried:
$format=$image->Get("format");

But the output of $format is the same with animated/non-animated GIF ->$format="CompuServe graphics interchange format"

Do you know, how to distinguish animated from non-animated?

Thanx a lot, Nejc

Replies are listed 'Best First'.
Re: Image::Magick - animated GIF
by Corion (Patriarch) on Jan 28, 2005 at 12:59 UTC

    Image::Magick makes a sequence of images available through the array that the object references:

    printf "This image has %s element(s)\n", @$image;
      It's working great! Txanx man:)
Re: Image::Magick - animated GIF
by Anonymous Monk on Jan 28, 2005 at 13:57 UTC
      Image::Info should be faster than Image::Magick since Image::Info ignores the actual image, paying attention only to the meta data.
Re: Image::Magick - animated GIF
by zentara (Archbishop) on Jan 28, 2005 at 18:18 UTC
    Does anyone know if you can reliably use the GIF header...GIF89a ..vs...GIF87a to detect if it's animated? It seems all the animated gifs I see are GIF89a.

    I'm not really a human, but I play one on earth. flash japh

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://425936]
Front-paged by holli
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-19 21:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found