note 98078 added to function.imagick-addimage

From: Date: Tue, 25 May 2010 03:21:09 +0000
Subject: note 98078 added to function.imagick-addimage
Groups: php.notes 
Request: Send a blank email to php-notes+get-169574@lists.php.net to get a copy of this message
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

« previous php.notes (#169574) next »