concat-frames:将像素流连接成帧数组

时间:2021-06-20 19:57:46
【文件属性】:
文件名称:concat-frames:将像素流连接成帧数组
文件大小:3KB
文件格式:ZIP
更新时间:2021-06-20 19:57:46
JavaScript 连接帧 将像素流连接到帧对象数组中。 这对于测试目的以及您想要一次获得整个图像帧而不是流的情况很有用。 安装 npm install concat-frames 例子 以下示例使用从动画 GIF 生成帧数组。 var concat = require ( 'concat-frames' ) ; var GIFDecoder = require ( 'gif-stream/decoder' ) ; fs . createReadStream ( 'in.gif' ) . pipe ( new GIFDecoder ) . pipe ( concat ( function ( frames ) { // frames is an array of frame objects. // each one has a `pixels` property containi
【文件预览】:
concat-frames-master
----.gitignore(24B)
----README.md(789B)
----test()
--------index.js(2KB)
----package.json(703B)
----index.js(1KB)

网友评论