Skip to content

guetzli wrapper that makes it seamlessly available as a local dependency

License

Notifications You must be signed in to change notification settings

imagemin/guetzli-bin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

guetzli-bin GitHub Actions Status

Guetzli is a JPEG encoder that aims for excellent compression density at high visual quality. Guetzli-generated images are typically 20-30% smaller than images of equivalent quality generated by libjpeg.

You probably want imagemin-guetzli instead.

Install

$ npm install guetzli

Usage

import {execFile} from 'node:child_process';
import guetzli from 'guetzli';

execFile(guetzli, ['input.jpg', 'output.jpg'], error => {
	console.log('Image minified!');
});

CLI

$ npm install --global guetzli
$ guetzli --help

License

MIT © Imagemin