如何使用PHP提取动画GIF的帧 [英] How to extract frames of an animated GIF with PHP
问题描述
我花了很长时间寻找如何使用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
You can find it here: https://github.com/Sybio/GifFrameExtractor
感谢您的回答!
这篇关于如何使用PHP提取动画GIF的帧的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!