如何使用 PHP 提取动画 GIF 的帧 [英] How to extract frames of an animated GIF with PHP

查看:30
本文介绍了如何使用 PHP 提取动画 GIF 的帧的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我搜索了很长时间如何使用 PHP 从动画 GIF 中提取帧...不幸的是,我刚刚找到了如何获取它们的持续时间...

I search for a long time how to extract frames from an animated GIF with PHP... unfortunaly I just found how to get their duration...

我真的需要提取 GIF 帧及其持续时间以对每个帧应用一些调整大小、旋转等,然后使用编辑过的帧重新生成 GIF!

I really need to extract the GIF frames and their duration to apply some resize, rotate, etc, on each and then to regenerate the GIF with edited frames !

我不想使用任何软件、外部库(如 ImageMagick),只想使用 PHP:实际上我需要允许我的类 http://phpimageworkshop.com/ 处理动画 GIF.

I don't want to use any software, external library (like ImageMagick), just PHP: in fact I need to allow my class http://phpimageworkshop.com/ to work with animated GIF.

如果你有任何想法,我会听你的^^!

If you have any idea, I'm listening you ^^ !

推荐答案

我花了一天的时间基于这个创建了一个类仅使用 PHP 即可实现我想要的!

I spent my day creating a class based on this one to achieve what I wanted using only PHP!

您可以在这里找到它:https://github.com/Sybio/GifFrameExtractor

感谢您的回答!

这篇关于如何使用 PHP 提取动画 GIF 的帧的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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