|
Posted by Norman Peelman on 02/18/07 14:14
jim wrote:
> 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
>
>
Maybe because you are actually sending a .PNG instead?
Norm
Navigation:
[Reply to this message]
|