Skip to content

Latest commit

 

History

History
40 lines (24 loc) · 862 Bytes

readme.md

File metadata and controls

40 lines (24 loc) · 862 Bytes

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