Fork me on GitHub

gm v1.9.0 GraphicsMagick for node.js

var gm = require('gm');

gm('/path/to/image.jpg')
.resize(353, 257)
.autoOrient()
.write(writeStream, function (err) {
  if (!err) console.log(' hooray! ');
});

Get it!

First install either GraphicsMagick or ImageMagick. Then:

> npm install gm

Read the documentation