first commit
This commit is contained in:
57
build/node_modules/imagemin-advpng/readme.md
generated
vendored
Normal file
57
build/node_modules/imagemin-advpng/readme.md
generated
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
# imagemin-advpng [](https://travis-ci.org/imagemin/imagemin-advpng) [](https://ci.appveyor.com/project/ShinnosukeWatanabe/imagemin-advpng)
|
||||
|
||||
> advpng imagemin plugin
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install imagemin-advpng
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
const imagemin = require('imagemin');
|
||||
const imageminAdvpng = require('imagemin-advpng');
|
||||
|
||||
imagemin(['images/*.png'], 'build/images', {use: [imageminAdvpng()]}).then(() => {
|
||||
console.log('Images optimized');
|
||||
});
|
||||
```
|
||||
|
||||
|
||||
## API
|
||||
|
||||
### imageminAdvpng([options])(buffer)
|
||||
|
||||
#### options
|
||||
|
||||
Type: `Object`
|
||||
|
||||
##### optimizationLevel
|
||||
|
||||
Type: `number`<br>
|
||||
Default: `3`
|
||||
|
||||
Select an optimization level between `0` and `4`.
|
||||
|
||||
Levels:
|
||||
|
||||
`0` Don't compress<br>
|
||||
`1` Compress fast (zlib)<br>
|
||||
`2` Compress normal (7z)<br>
|
||||
`3` Compress extra (7z)<br>
|
||||
`4` Compress extreme (zopfli)
|
||||
|
||||
#### buffer
|
||||
|
||||
Type: `Buffer`
|
||||
|
||||
Buffer to optimize.
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [imagemin](https://github.com/imagemin)
|
||||
Reference in New Issue
Block a user