Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

gifsickle

0.1.1 • Public • Published

gifsickle

a node wrapper for gifsicle and gifsicle-bin.

specifically useful for setting delays for individual frames.

install

npm install gifsickle

usage

var gifsickle = require('gifsickle');
var frames = require('glob').sync('*.gif').map(function(path) {
  return { path: path }
});
 
// set the delay of 0.5s to first frame
frames[0].delay = 50;
 
gifsickle('foo.gif', [
  frames: frames,
  delay: 15,
}, function() {
  console.log('gif is ready');
});

Keywords

Install

npm i gifsickle

DownloadsWeekly Downloads

0

Version

0.1.1

License

MIT

Last publish

Collaborators

  • avatar