Skip to content

Latest commit

 

History

History
20 lines (9 loc) · 431 Bytes

README.md

File metadata and controls

20 lines (9 loc) · 431 Bytes

node-jpegoptim

Bindings to jpegoptim, jpeglib for jpeg image optimize

Example

var jpegoptim = require('jpegoptim');
var quality = 50; // 1~100

jpegoptim.optimize('./img/input.jpg', './img/output.jpg', quality);

Installation

You can install the latest tag via npm:

npm install git://github.com/coolbong/node-jpegoptim.git