Have opinions about JavaScript? We want to hear them. Take the 2018 JavaScript Ecosystem Survey »

imagemin-pngcrush

6.0.0 • Public • Published

imagemin-pngcrush Build Status Build status

pngcrush imagemin plugin

Install

$ npm install --save imagemin-pngcrush

Usage

const imagemin = require('imagemin');
const imageminPngcrush = require('imagemin-pngcrush');
 
imagemin(['images/*.png'], 'build/images', {
    plugins: [
        imageminPngcrush()
    ]
}).then(() => {
    console.log('Images optimized');
});

API

imageminPngcrush([options])(buffer)

options

reduce

Type: boolean
Default: false

Enable lossless color-type or bit-depth reduction.

buffer

Type: buffer

Buffer to optimize.

License

MIT © imagemin

install

npm i imagemin-pngcrush

Downloadsweekly downloads

3,918

version

6.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability