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

查看:26
本文介绍了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来自 PHP,使用 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天全站免登陆