<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://www.zeitoun.net/lib/exe/css.php?s=feed" type="text/css"?>
<feed version="0.3" xmlns="http://purl.org/atom/ns#">
    <title>Zeitoun.net articles:php-gif-animated</title>
    <tagline></tagline>
    <link rel="alternate" type="text/html" href="http://www.zeitoun.net/"/>
    <id>http://www.zeitoun.net/</id>
    <modified>2026-04-19T17:57:25+02:00</modified>
    <generator>FeedCreator 1.7.2-ppt DokuWiki</generator>
    <entry>
        <title>How to know if a GIF image is animated in PHP ?</title>
        <link rel="alternate" type="text/html" href="http://www.zeitoun.net/articles/php-gif-animated/start?rev=1269637843&amp;do=diff"/>
        <created>2010-03-26T22:10:43+02:00</created>
        <issued>2010-03-26T22:10:43+02:00</issued>
        <modified>2010-03-26T22:10:43+02:00</modified>
        <id>http://www.zeitoun.net/articles/php-gif-animated/start?rev=1269637843&amp;do=diff</id>
        <summary>function isImageAnimated($file)
{
    $nb_image_frame = 0;
    $image = new Imagick($file);
    foreach($image-&gt;deconstructImages() as $i) {
        $nb_image_frame++;
        if ($nb_image_frame &gt; 1) {
            return true;
        }
    }
    return false;
}</summary>
    </entry>
</feed>
