Skip to content

Instantly share code, notes, and snippets.

@elxris
Created May 30, 2016 19:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elxris/3257901c8f91434c20e5278fd332b5ec to your computer and use it in GitHub Desktop.
Save elxris/3257901c8f91434c20e5278fd332b5ec to your computer and use it in GitHub Desktop.
lwip - Image Resize
var lwip = require('lwip');
lwip.open('image.jpg', function(err, image) {
if (err) {throw err;}
image.batch()
.cover(200, 200)
.writeFile('output.jpg', function(err) {
if (err) {throw err;}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment