Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 836 Bytes

readme.md

File metadata and controls

36 lines (24 loc) · 836 Bytes

mozjpeg-changba Build 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 instead.

Install

$ npm install mozjpeg-changba

Usage

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

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

CLI

$ npm install --global mozjpeg-changba
$ mozjpeg --help

License

MIT © Imagemin