Animated GIF and getImageBlob ?

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
badabou
Posts: 54
Joined: 2008-06-23T06:12:24-07:00

Animated GIF and getImageBlob ?

Post 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.
mkoppanen
Posts: 309
Joined: 2007-06-09T07:06:32-07:00

Re: Animated GIF and getImageBlob ?

Post by mkoppanen »

Hello, use getImagesBlob
Mikko Koppanen
My blog: http://valokuva.org
badabou
Posts: 54
Joined: 2008-06-23T06:12:24-07:00

Re: Animated GIF and getImageBlob ?

Post by badabou »

Thank you very much Mikko ! The function doesn't exists in documentation (php.net).
Post Reply