Skip to content

mozjpeg bin-wrapper that makes it seamlessly available as a local dependency

License

Notifications You must be signed in to change notification settings

astraldawn/mozjpeg-bin

 
 

Repository files navigation

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

About

mozjpeg bin-wrapper that makes it seamlessly available as a local dependency

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 85.5%
  • Dockerfile 14.5%