1.0.3 • Published 9 years ago

webpconv v1.0.3

Weekly downloads
9
License
MIT
Repository
github
Last release
9 years ago

webpconv

a node.js module to convert webp image to other format and vice versa.

webpconv

Installation

  $ npm install webpconv -save

How to use

  //require the module
  var webpconv = require('webpconv');
  
  //input webp and output other format
  webpconv.dwebp("input.webp", "output.jpg", function(err, resp){
      if(err){
          throw(err);
      }else{
          console.log(JSON.stringify(resp));
      }
  });
 
  //input other format and output webp, you must specify the quality of the output webp image
  webpconv.cwebp("input.png", "output.webp", "75", function(err, resp){
      if(err){
          throw(err);
      }else{
          console.log(JSON.stringify(resp));
      }
  });

License

[MIT] (LICENSE)
1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago