cwebp-bin

8.0.0 • Public • Published

cwebp-bin GitHub Actions 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

import {execFile} from 'node:child_process';
import cwebp from '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

/cwebp-bin/

    Package Sidebar

    Install

    npm i cwebp-bin

    Weekly Downloads

    277,198

    Version

    8.0.0

    License

    MIT

    Unpacked Size

    4.11 MB

    Total Files

    8

    Last publish

    Collaborators

    • nothingismagick
    • sindresorhus
    • kevva
    • 1000ch
    • xhmikosr
    • shinnn