New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

pngcrush-bin

Package Overview
Dependencies
Maintainers
6
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pngcrush-bin

pngcrush wrapper that makes it seamlessly available as a local dependency

4.0.0
Source
npm
Version published
Weekly downloads
5.8K
6.74%
Maintainers
6
Weekly downloads
 
Created
Source

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

Keywords

imagemin

FAQs

Package last updated on 01 Dec 2018

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