@mole-inc/cwebp-bin

9.0.5 • Public • Published

cwebp-bin Node CI

WebP is a new image format that provides lossless and lossy compression for images on the web. WebP lossless images are 26% smaller in size compared to PNGs. WebP lossy images are 25-34% smaller in size compared to JPEG images at equivalent SSIM index.

You probably want imagemin-webp instead.

Downloads Version codecov

Install

$ npm install @mole-inc/cwebp-bin

Usage

import {execFile} from 'child_process';
import {cwebpBin} from '@mole-inc/cwebp-bin';

execFile(cwebpBin.path, ['input.png', '-o', 'output.webp'], err => {
	if (err) {
		throw err;
	}

	console.log('Image is converted!');
});

CLI

$ npm install --global @mole-inc/cwebp-bin
$ cwebp --help

License

This is a fork of imagemin/cwebp-bin licensed under the MIT License.

see license file and vendor/cwebp-license.txt file.

Package Sidebar

Install

npm i @mole-inc/cwebp-bin

Weekly Downloads

33

Version

9.0.5

License

MIT

Unpacked Size

3.13 MB

Total Files

9

Last publish

Collaborators

  • aaharu