Page 1 of 1

Animated GIF and getImageBlob ?

Posted: 2008-10-07T12:38:05-07:00
by badabou
Hello,

I have a problem for output an animated GIF to the browser.

Here is my symple code :

Code: Select all

header('Content-type: image/gif');
$im = new Imagick('animated.gif');
$im->setFormat('gif');
echo $im->getImageBlob();
exit();
Just the first frame is displayed.

Thank for your response.

Re: Animated GIF and getImageBlob ?

Posted: 2008-10-20T13:37:22-07:00
by mkoppanen
Hello, use getImagesBlob

Re: Animated GIF and getImageBlob ?

Posted: 2008-10-23T06:51:04-07:00
by badabou
Thank you very much Mikko ! The function doesn't exists in documentation (php.net).