UNPKG

node-lwip

Version:

Comprehensive, fast, and simple image processing and manipulation

17 lines (14 loc) 391 B
/** * Example for using LWIP to shift image's hue by 50 degrees. */ var path = require('path'), lwip = require('../'); lwip.open('lena.jpg', function(err, image) { if (err) return console.log(err); image.batch() .hue(50) .writeFile('lena_hue.jpg', function(err) { if (err) return console.log(err); console.log('done'); }); });