gifzip
v1.0.2
Published
Change the gif frame rate and size.
Downloads
9
Readme
Sample:
//you can also npm install gifzip and then require("gifzip")
var util = require("./index");
//select a gif to unpack, the first argument could be filename or url
util.unpack("./some.gif", 160, 120, (folder,w,h)=>{
//after unpacked.
//pack the gif back with frame: 60 and the origin width/height.
//write the gif to any stream: express response or fs.createWriteStream(filename)
util.packStream(folder, anyStream, 60, w,h);
//delete the temp folder used by unpacking
exec("rm -rf "+__dirname+"/"+folder);
});