0.2.0 • Published 3 years ago

mozjpeg-jpegtran-bin v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

mozjpeg-jpegtran-bin GitHub Actions Status

mozjpeg is a production-quality JPEG encoder that improves compression while maintaining compatibility with the vast majority of deployed decoders

You probably want imagemin-mozjpeg-jpegtran instead.

Install

$ npm install mozjpeg-jpegtran-bin

Usage

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

execFile(mozjpeg, ['-outfile', 'output.jpg', 'input.jpg'], err => {
	console.log('Image minified!');
});

CLI

$ npm install --global mozjpeg-jpegtran-bin
$ mozjpeg-jpegtran --help

License

MIT © Imagemin, Hideo Matsumoto