Package Exports
- imagemin-pngout
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (imagemin-pngout) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
imagemin-pngout 
pngout imagemin plugin
Install
$ npm install imagemin-pngout
Usage
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<Buffer>
.
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