PHP - 从两个JPEG图像创建简单的动画GIF? [英] PHP - Create simple animated GIF from two JPEG images?

查看:114
本文介绍了PHP - 从两个JPEG图像创建简单的动画GIF?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人知道是否可以从两个不同的JPEG文件生成动画GIF,显示一个图像x秒然后另一个图像,依此类推......?

Does anyone know if it's possible to generate an animated GIF from two different JPEG files, displaying one image for x seconds then the other, and so on..?

任何建议表示赞赏。

谢谢。

推荐答案

这是不可能的使用预装PHP的标准GD函数。

It's not possible using the standard GD functions that come pre-packed with PHP.

有一个 类phpclasses.org 。我自己从未使用它,但是它被许多其他软件包使用。

There is a class on phpclasses.org for this. I have never used it myself, but it's used by a lot of other packages.

或者,如果你有权访问 ImageMagick ,使用 MagickWand 库或命令行,使用它。使用ImageMagick,没问题。

Alternatively, if you have access to ImageMagick from PHP, using either the MagickWand library or the command line, use it. With ImageMagick, it's no problem.

  • ImageMagick v6 Animation basics (from the IM manual)

制作动画GIF图片

这篇关于PHP - 从两个JPEG图像创建简单的动画GIF?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆