Licence
Apache-2.0
Version
0.0.1
Deps
0
Vulns
0
Weekly
0
jpeg-min
jpeg-min is based on guetzli.
How to use?
var jpegmin = require('jpeg-min');
// The jpeg file will be compressed and replaced.
jpegmin('/path/to/my.jpg', function(err) {
// ...
});
ATTENTION: By default, the jpeg file will be replaced with compressed one. So, if you wanna keep the original jpeg, make a copy before invoke jpeg-min.