管理在PHP动画图像 [英] Managing animated images in PHP

查看:281
本文介绍了管理在PHP动画图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想对这个话题的一些信息。大家都知道,它可以管理,甚至创建PHP的GD库中的图像,但它可以编辑GIF动画不失动画?希望有人是足够的智慧来回答这个问题:)

I would like to have some information about this topic. Everybody knows that it's possible to manage and even create images with PHPs gd-library, but is it possible to edit animated GIFs without losing the animation? Hope that someone is wise enough to answer this :)

莱恩马尔蒂

推荐答案

这是网站上表示, Boutell的,GD原厂商的,有动画功能,GD,但我从来没有见过他们在PHP手册提及任何地方。

It is said on the website of Boutell, the original makers of GD that there are animation functions to GD, but I have never seen them mentioned anywhere in the PHP manual.

有一些外部类编辑GIF动画如这个

There are several external classes to edit animated GIFs like this one.

如果您的服务器支持它,但是,我建议 ImageMagick的,外部图像处理解。它可以GIF动画分成单个文件(见这里),并把它们重新走到一起为动画。

If your server supports it, however, I recommend ImageMagick, an external image processing solution. It can split animated GIFs into single files (see here) and put them back together to an animation.

其他GD资源:

  • How do I extract a single image from a multi-image file?
  • Animation basics in the GD manual
  • Animation modifications in the GD manual

这篇关于管理在PHP动画图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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