how to pass image buffer data to gm in() GraphicsMagic
var buf = require('fs').readFileSync('test.jpg'); gm().in('-page', '+0+0').in(buf,'test.jpg').write('output.jpg', function (err) { if (err) console.log(err); }) in this case i want to pass buffer data as input to the gm.in() method. Below is the link I'm referencing but in it, an image path is used as an input. I want to use buffer data as an input. How can I do this? Tile four images together using Node.js and GraphicsMagick Without modifying the source of GraphicsMagick itself, you can't. The gm module interacts with the GraphicsMagick program through the command line. The arguments you're