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.
$ npm install guetzli
import {execFile} from 'node:child_process';
import guetzli from 'guetzli';
execFile(guetzli, ['input.jpg', 'output.jpg'], error => {
console.log('Image minified!');
});
$ npm install --global guetzli
$ guetzli --help
MIT © Imagemin