You are here: Re: gd library problem « PHP Language « IT news, forums, messages
Re: gd library problem

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация