简体   繁体   English

使用JavaScript从gif获取帧数和帧之间的延迟

[英]Getting frame count and delay between frames from gif using javascript

I am trying to know the frame count and delay between frames of a gif usign javascript , Without actualy parsing the gif with canvas, possibly from the its header . 我想知道的GIF usign 的JavaScript 框架之间帧计数延迟 ,没有actualy解析用帆布的GIF,可能从它的

After long search in Google, which return no results, I've tried to understand it from a gif parsign libraries such as 'giflib' with no success of understanding. 在Google中进行长时间搜索后,该搜索未返回任何结果,但我尝试通过gif parsign库(例如“ giflib”)来理解它,但没有成功理解。

At the end I want to do it using simple code I cant include library to the existed code , An y other parsing tools wont be used at all , I just look for this specific parameters 最后,我想用简单的代码来做, 我不能在现有的代码中包括库 ,根本不会使用其他解析工具 ,我只是在寻找这个特定的参数

Thanks. 谢谢。

How about jsgif ? jsgif怎么

It allows you to parse an animated gif file with JavaScript and add some controls to it. 它允许您使用JavaScript解析动画gif文件,并向其中添加一些控件。 With some modification you can change this to a counter of how many frames your gif file has? 通过一些修改,您可以将其更改为gif文件具有多少帧的计数器?

使用例

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM