stan-gif
v1.0.1
Published
extracting gif frames and composite gif
Downloads
4
Readme
stan-gif
extracting the frame image of gif and composite gif
Install
npm install save stan-gif
Example Usage
extracting the frame image of gif
const Gif = require('stan-gif')
const gif = new Gif({
input: './images/test.gif',
output: './images/frame-%d.png'
})
gif.decode()
composite gif
const Gif = require('stan-gif')
const gif = new Gif({
input: './images/frame-?.png',
output: './images/frame.gif',
width: 440,
height: 231
})
gif.encode().then(() => {
console.log('composite gif success!')
}).catch(err => {
console.log(err)
})