Uploading animated gifs using GD library

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
icecandy
Forum Newbie
Posts: 5
Joined: Fri May 22, 2009 4:57 pm

Uploading animated gifs using GD library

Post by icecandy »

So the script im using uses imagecreatefromgif but when I use it with an animated gif it only takes the first frame. I read that GD2 supports animated gifs and that is what my server had installed so im wondering why it wont work? does anyone know how to get this to work or what other function I can use so that the image wont loose its animation?

thanks
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Uploading animated gifs using GD library

Post by requinix »

The GD bundled with PHP does not support animated GIFs. The version that does has to be compiled in separately - that is, manually.
Post Reply