Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var gm = require('gm');
- gm('/path/to/image.jpg')
- .resize(353, 257) // use your own width and height
- .autoOrient()
- .write(writeStream, function (err) {
- if (!err) console.log(' hooray! ');
- });
- var gm = require('gm');
- gm('/path/to/image.jpg')
- .resize(353, 257) // use your own width and height
- .autoOrient()
- .write(writeStream, function (err) {
- if (!err) console.log(' hooray! ');
- });
Add Comment
Please, Sign In to add comment