从.jpeg/png创建动画的.gif [英] Create an animated .gif from .jpeg/png
本文介绍了从.jpeg/png创建动画的.gif的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以使用GD库创建动画gif?我希望用户上传png/jpeg并从图像中生成2帧动画gif.谢谢
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
推荐答案
There is a good post about it on SO : Create Animated Gif with Jpeg Images
您无法使用GD Functions进行此操作,但是phpclasses.org上有一个类可以执行此操作,请检查:
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
这篇关于从.jpeg/png创建动画的.gif的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文