7.0.0 • Published 4 years ago
mozjpeg-mirror v7.0.0
mozjpeg-mirror
use https://npm.taobao.org/mirrors/mozjpeg-bin/ as downlaod source
mozjpeg-bin
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
instead.
Install
$ npm install mozjpeg-mirror
Usage
const {execFile} = require('child_process');
const mozjpeg = require('mozjpeg-mirror');
execFile(mozjpeg, ['-outfile', 'output.jpg', 'input.jpg'], err => {
console.log('Image minified!');
});
CLI
$ npm install --global mozjpeg-mirror
$ mozjpeg --help
License
MIT © Imagemin
7.0.0
4 years ago