Create an animated .gif from .jpeg/png

 ̄綄美尐妖づ 提交于 2019-12-21 12:30:59

问题


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


回答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




回答2:


The question is old but here a new library to create animated GIF with PHP: https://github.com/Sybio/GifCreator



来源:https://stackoverflow.com/questions/10260314/create-an-animated-gif-from-jpeg-png

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!