Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More

mozjpeg

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mozjpeg

mozjpeg wrapper that makes it seamlessly available as a local dependency


Version published
Maintainers
1
Created

mozjpeg Build Status

mozjpeg is a production-quality JPEG encoder that improves compression while maintaining compatibility with the vast majority of deployed decoders

Install

$ npm install --save mozjpeg

Usage

var execFile = require('child_process').execFile;
var mozjpeg = require('mozjpeg').path;

execFile(mozjpeg, ['-v'], function (err, stdout, stderr) {
    console.log('mozjpeg version:', stdout.match(/\d\.\d\.\d/)[0]);
});

CLI

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

License

MIT © Kevin Mårtensson

FAQs

Package last updated on 09 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts