mozjpeg-binaries
Wrapper for mozjpeg
binaries.
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-full
instead.
What is difference between mozjpeg-bin:
- Contains all binaries delivered by
mozjpeg
:cjpeg
,djpeg
,jpegtran
,rdjpgcom
,tjbench
andwrjpgcom
(onlyx64
supported). - No security vulnerabilities.
- Latest version.
Installation
$ npm install mozjpeg-binaries
Usage
const execFile = ;const binaries = ; // `binaries` contains:// - cjpeg (original `mozjpeg` binary)// - djpeg// - jpegtran// - rdjpgcom// - tjbench// - wrjpgcom ;
CLI
$ npm install --global mozjpeg
$ cjpeg --help$ djpeg --help$ jpegtran --help$ rdjpgcom --help$ tjbench --help$ wrjpgcom --help