Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/imagemin/imagemin-pngout
pngout plugin for imagemin
https://github.com/imagemin/imagemin-pngout
Last synced: 3 days ago
JSON representation
pngout plugin for imagemin
- Host: GitHub
- URL: https://github.com/imagemin/imagemin-pngout
- Owner: imagemin
- License: mit
- Created: 2014-04-25T13:04:31.000Z (over 10 years ago)
- Default Branch: main
- Last Pushed: 2021-05-29T13:35:33.000Z (over 3 years ago)
- Last Synced: 2024-10-28T15:59:27.175Z (15 days ago)
- Language: JavaScript
- Homepage:
- Size: 28.3 KB
- Stars: 14
- Watchers: 6
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# imagemin-pngout ![GitHub Actions Status](https://github.com/imagemin/imagemin-pngout/workflows/test/badge.svg?branch=master)
> pngout imagemin plugin
## Install
```
$ npm install imagemin-pngout
```## Usage
```js
const imagemin = require('imagemin');
const imageminPngout = require('imagemin-pngout');(async () => {
await imagemin(['images/*.png'], {
destination: 'build/images',
plugins: [
imageminPngout()
]
});console.log('Images optimized');
})();
```## API
### imageminPngout([options])(buffer)
Returns a `Promise`.
#### options
Type: `Object`
##### strategy
Type: `number`
Default: `0`Select a strategy level between `0` and `4`:
`0.` Extreme
`1.` Intense
`2.` Longest match
`3.` Huffman only
`4.` Uncompressed## License
MIT © Imagemin