imagemin / pngcrush-bin

pngcrush bin-wrapper that makes it seamlessly available as a local dependency

Home Page:http://pmt.sourceforge.net/pngcrush/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

pngcrush bin-wrapper that makes it seamlessly available as a local dependency

http://pmt.sourceforge.net/pngcrush/

License:MIT License


Languages

Language:JavaScript 100.0%