🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
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

7.0.0
latest
Source
npm
Version published
Weekly downloads
4.4K
0.51%
Maintainers
6
Weekly downloads
 
Created
Source

pngcrush-bin GitHub Actions 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

import {execFile} from 'node:child_process';
import pngcrush from 'pngcrush-bin';

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

CLI

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

License

MIT © Imagemin

Keywords

imagemin

FAQs

Package last updated on 12 May 2022

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