pngcrush-bin

pngcrush wrapper that makes it seamlessly available as a local dependency

MIT 38 个版本
安装
npm install pngcrush-bin
yarn add pngcrush-bin
pnpm add pngcrush-bin
bun add pngcrush-bin
README

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

版本列表
7.0.0 2022-05-12
6.0.1 2021-11-10
6.0.0 2021-10-23
5.0.2 2021-10-22
5.0.1 2020-06-30
5.0.0 2020-05-31
4.0.0 2018-12-01
3.1.1 2017-08-30
3.1.0 2016-11-09
3.0.0 2015-04-23
2.2.1 2015-02-04
2.2.0 2014-12-30
2.1.1 2014-11-24
2.1.0 2014-11-06
2.0.0 2014-10-20
1.0.0 2014-09-07
0.1.18 2014-08-13
0.1.17 2014-08-09
0.1.16 2014-07-12
0.1.15 2014-06-24
0.1.13 2014-04-30
0.1.12 2014-04-23
0.1.11 2014-04-23
0.1.10 2014-03-11
0.1.9 2014-03-11
0.1.8 2014-03-11
0.1.7 2014-02-04
0.1.6 2014-02-04
0.1.5 2014-02-03
0.1.4 2014-02-03
0.1.3 2014-02-03
0.1.2 2014-02-03
0.1.1 2014-01-31
0.1.0 2014-01-31
0.0.4 2014-01-30
0.0.3 2014-01-30
0.0.2 2014-01-30
0.0.1 2014-01-30