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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    0
    • latest
  • 0.0.1
    0
    • initial

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i lossy-imagemin

Weekly Downloads

0

Version

0.0.3

License

MIT

Last publish

Collaborators

  • builden