first commit
This commit is contained in:
40
build/node_modules/pngcrush-bin/readme.md
generated
vendored
Normal file
40
build/node_modules/pngcrush-bin/readme.md
generated
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
# pngcrush-bin [](https://travis-ci.org/imagemin/pngcrush-bin)
|
||||
|
||||
> [pngcrush](https://pmt.sourceforge.io/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`](https://github.com/imagemin/imagemin-pngcrush) instead.
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install --save pngcrush-bin
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
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](https://github.com/imagemin)
|
||||
Reference in New Issue
Block a user