lossy-imagemin

0.0.3 • Public • Published

lossy imagemin

lossy compress image by imagemin-pngquant & imagemin-mozjpeg

How to use

var imagemin = require('lossy-imagemin');
var opt = {
  base: 'res',          // destPath retain src dir info
  jpgQuality: '70',     // max 100, default: 70
  cache: fasle          // use gulp cache [true]
};
imagemin(srcGlob, destPath, opt, function(err) {
  if (err) {
    console.error(err);
  }
});

Installation

npm install --save lossy-imagemin

Tests

npm install
npm test

Dependents (0)

Package Sidebar

Install

npm i lossy-imagemin

Weekly Downloads

3

Version

0.0.3

License

MIT

Last publish

Collaborators

  • builden