Miss any of our Open RFC calls?Watch the recordings here! »

pngcrush-bin

5.0.1 • Public • Published

pngcrush-bin Build Status

pngcrush is an optimizer which main purpose is to reduce the size of the PNG IDAT datastream by trying various compression levels an PNG filter methods

You probably want imagemin-pngcrush instead.

Install

$ npm install --save pngcrush-bin

Usage

const {execFile} = require('child_process');
const pngcrush = require('pngcrush-bin');
 
execFile(pngcrush, ['-reduce', '-brute', 'input.png', 'output.png'], err => {
    console.log('Image minified');
});

CLI

$ npm install --global pngcrush-bin
$ pngcrush --help

License

MIT © Imagemin

Install

npm i pngcrush-bin

DownloadsWeekly Downloads

8,525

Version

5.0.1

License

MIT

Unpacked Size

566 kB

Total Files

8

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar