mozjpeg-binaries
Wrapper for mozjpeg binaries (cjpeg, djpeg, jpegtran, rdjpgcom, tjbench and wrjpgcom).
Last updated a year ago by evilebottnawi .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install mozjpeg-binaries 
SYNC missed versions from official npm registry.

mozjpeg-binaries

NPM version Travis Build Status dependencies Status devDependencies Status

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 and wrjpgcom (only x64 supported).
  • No security vulnerabilities.
  • Latest version.

Installation

$ npm install mozjpeg-binaries

Usage

const { execFile } = require("child_process");
const binaries = require("mozjpeg-binaries");

// `binaries` contains:
// - cjpeg (original `mozjpeg` binary)
// - djpeg
// - jpegtran
// - rdjpgcom
// - tjbench
// - wrjpgcom

execFile(binaries.cjpeg, ["-outfile", "output.jpg", "input.jpg"], err => {
  console.log("Image minified!");
});

CLI

$ npm install --global mozjpeg
$ cjpeg --help
$ djpeg --help
$ jpegtran --help
$ rdjpgcom --help
$ tjbench --help
$ wrjpgcom --help

Changelog

License

Current Tags

  • 2.1.0                                ...           latest (a year ago)

6 Versions

  • 2.1.0                                ...           a year ago
  • 2.0.0                                ...           a year ago
  • 1.1.0                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 0
Last Month 1
Dependencies (3)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |