note 98078 added to function.imagick-addimage

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
to create an animation gif  from filelist using addImage

<?php
    $filelist = array("fileitem1.png","fileitem2.png","fileitem3.png");

    $aniGif = new Imagick();
    $aniGif->setFormat("gif");

    foreach($filelist as $frameitem){
        echo "-----------------------\n adding frame {$frameitem}\n";
        $frame = new Imagick($frameitem);        
        $aniGif->addImage($frame);
        //$delay time unit is micro second so 100 = 1s, one picture per second
        $aniGif->setImageDelay($delay = 100);
        echo "end of adding frame {$frameitem}\n";
    }
    //there more than one file, so must be using writeImages()
    $aniGif->writeImages($fileTarget = "aniGif.gif", $adjoin = true);
?>
----
Server IP: 69.147.83.197
Probable Submitter: 222.66.77.138
----
Manual Page -- http://www.php.net/manual/en/function.imagick-addimage.php
Edit        -- https://master.php.net/note/edit/98078
Del: integrated  -- https://master.php.net/note/delete/98078/integrated
Del: useless     -- https://master.php.net/note/delete/98078/useless
Del: bad code    -- https://master.php.net/note/delete/98078/bad+code
Del: spam        -- https://master.php.net/note/delete/98078/spam
Del: non-english -- https://master.php.net/note/delete/98078/non-english
Del: in docs     -- https://master.php.net/note/delete/98078/in+docs
Del: other reasons-- https://master.php.net/note/delete/98078
Reject      -- https://master.php.net/note/reject/98078
Search      -- https://master.php.net/manage/user-notes.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.