Is it possible to use the GD library to create an animated gif? I want the user to upload a png/jpeg and generate a 2 frame animated gif out of the image. Thanks
Asked
Active
Viewed 1.0k times
6
-
possible duplicate of [PHP - Create simple animated GIF from two JPEG images?](http://stackoverflow.com/questions/2191367/php-create-simple-animated-gif-from-two-jpeg-images) – Lawrence Cherone Apr 21 '12 at 15:30
-
Possible duplicate of [PHP - Create simple animated GIF from two JPEG images?](https://stackoverflow.com/questions/2191367/php-create-simple-animated-gif-from-two-jpeg-images) – j08691 Nov 20 '18 at 22:50
2 Answers
6
The question is old but here a new library to create animated GIF with PHP: https://github.com/Sybio/GifCreator

Sybio
- 8,565
- 3
- 44
- 53
-
Wow, the API example in your README there looks very impressive! That (your API design, and also the examples) alone is worth a couple of upvotes, great job! I'll give it a try. (UPDATE: tried, liked, [forked](https://github.com/lunakid/AnimGif), fixed, thanks!) – Sz. Apr 24 '14 at 23:48
1
There is a good post about it on SO : Create Animated Gif with Jpeg Images
You can't do it with GD Functions, but there is a class on phpclasses.org to do this, check that : PHP Classes GIF Animation From
You can also find a good tutorial about it here : Tutorial Generate Animated GIF PHP