|
Posted by jim on 02/18/07 10:19
Hi,
I'd like to display an animated gif in PHP.
This my code :
$img_width = 468 ; $img_height = 60 ;
header ("Content-type: image/gif");
$im = imagecreate ($img_width, $img_height);
$background = imagecreatefromgif("MyAnimatedGif.gif");
ImageCopy($im, $background, 0, 0, 0, 0, $img_width, $img_height) ;
ImagePng ($im);
ImageDestroy($im);
The script only displays the first frame of the animated gif. I can't
display all the frames of it !
Can you tell me how to do it ?
thx,
jim
Navigation:
[Reply to this message]
|