npm.io
7.0.0 • Published 5 years agoCLI

mozjpeg-changba

Licence
MIT
Version
7.0.0
Deps
3
Size
1.6 MB
Vulns
0
Weekly
0
Install scriptsThis package runs scripts during installation (preinstall/install/postinstall)

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