1.0.1 • Published 5 years ago

stan-gif v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

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)
})