0.0.3 • Published 10 years ago

lossy-imagemin v0.0.3

Weekly downloads
12
License
MIT
Repository
github
Last release
10 years ago

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