Skip to content

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

License

Notifications You must be signed in to change notification settings

farcop/cwebp-bin

This branch is 2 commits ahead of, 27 commits behind imagemin/cwebp-bin:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Гусев Андрей АлександровичГусев Андрей Александрович
Гусев Андрей Александрович
and
Гусев Андрей Александрович
Jan 27, 2019
7fa6474 · Jan 27, 2019

History

86 Commits
Jan 26, 2019
Jan 27, 2019
Jan 27, 2019
Dec 27, 2017
Mar 31, 2017
Dec 27, 2017
Dec 27, 2017
Nov 2, 2018
Nov 2, 2018
Apr 27, 2015
Dec 27, 2017
Jan 26, 2019
Dec 27, 2017

Repository files navigation

cwebp-bin Build Status

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.

Install

$ npm install cwebp-bin

Usage

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

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

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

CLI

$ npm install --global cwebp-bin
$ cwebp --help

License

MIT © Imagemin

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%