Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

compress-image

zhiyingzzhou103MIT0.0.1

Minify image using tinypng

readme

compress-image

Minify image using tinypng

Install

Install with npm

npm install --save-dev compress-image

Example

var compressImage = require('compress-image');

compressImage('inputDir','outputDir',{
    tinifyApiKey: 'xxxxxxx' // tinypng developer apikey
    compresssPercent: 10 // limit compress scale
});

License

MIT © zhiyingzzhou