node-lwip
Version:
Comprehensive, fast, and simple image processing and manipulation
15 lines (12 loc) • 350 B
JavaScript
/**
* Example for using LWIP to convert an image from png to jpg.
*/
var path = require('path'),
lwip = require('../');
lwip.open('lena.gif', function(err, image) {
if (err) return console.log(err);
image.writeFile('lena_from_gif.png', function(err) {
if (err) return console.log(err);
console.log('done')
});
});