JSPM

  • Created
  • Published
  • Downloads 455119
  • Score
    100M100P100Q185414F
  • License MIT

OptiPNG wrapper that makes it seamlessly available as a local dependency

Package Exports

  • optipng-bin

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (optipng-bin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

optipng-bin Build Status

OptiPNG is a PNG optimizer that recompresses image files to a smaller size, without losing any information.

Install

$ npm install --save optipng-bin

Usage

var execFile = require('child_process').execFile;
var optipng = require('optipng-bin').path;

execFile(optipng, ['-out', 'output.png', 'input.png'], function (err) {
    if (err) {
        throw err;
    }

    console.log('Image minified!');
});

CLI

$ npm install --global optipng-bin
$ optipng --help

License

MIT © imagemin