gifzip

1.0.2 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    2
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i gifzip

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

4.76 kB

Total Files

4

Last publish

Collaborators

  • tilerphy