Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

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

install

npm i lossy-imagemin

Downloadsweekly downloads

10

version

0.0.3

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar