@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.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
9.0.533latest

Version History

VersionDownloads (Last 7 Days)Published
9.0.533
9.0.40
9.0.30
9.0.20
9.0.10
9.0.00
8.0.00
7.0.00
6.0.30
6.0.20
6.0.10
6.0.00

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