Nattily Polished Marbles
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

mozjpeg

6.0.0 • Public • Published

mozjpeg-bin 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

Usage

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

CLI

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

License

MIT © Imagemin

install

npm i mozjpeg

Downloadsweekly downloads

170,650

version

6.0.0

license

MIT

repository

githubgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar