imageoptim-api
1.0.1 • Public • Published ImageOptim MozJPEG HTTP API client
A Node interface for https://imageoptim.com/mozjpeg/ compressor.
It (re)compresses local PNG and JPEG files using MozJPEG encoder without needing any binaries installed on the local machine.
const ImageOptim = require('imageoptim-api');
const im = new ImageOptim();
im.compress()
.file('source_image.png')
.save('dest_image.jpg')
.then(() => {
console.log("Done! ./dest_image.jpg has been written");
});
Versions
Version | Downloads (Last 7 Days) | Tag |
---|
1.0.1 | 2 | latest |
Version History
Version | Downloads (Last 7 Days) | Published |
---|
1.0.1 | 2 | |
1.0.0 | 0 | |
Package Sidebar
Install
Weekly Downloads