Skip to content

img2webp bin-wrapper that makes it seamlessly available as a local dependency

License

Notifications You must be signed in to change notification settings

onetuskinc/img2webp-bin

 
 

Repository files navigation

img2webp-bin Build Status

WebP is a modern image format that provides superior lossless and lossy compression for images on the web. Using WebP, webmasters and web developers can create smaller, richer images that make the web faster.

Install

$ npm install --save img2webp-bin

Usage

const {execFile} = require('child_process');
const img2webp = require('img2webp-bin');

execFile(img2webp, ['frame1.png', 'frame2.png', '-o', 'outout.webp'], () => {
  console.log('Image converted!');
});

CLI

$ npm install --global img2webp-bin
$ img2webp --help

License

MIT

Based on Imagemin's gif2webp-bin

About

img2webp bin-wrapper that makes it seamlessly available as a local dependency

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%