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

/gifzip/

    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