What Nodejs image processing lib should I use with Heroku to make a dynamic png? I was first trying to make easy SVG file but it seems Facebook sharing does not accept SVG, so I need to generate PNG/GIF.
I was hoping a code like this that would return the image binary stream in http server Response.
//create image
var gd = require('node-gd');
var img = gd.createSync(200, 80);
img.colorAllocate(0, 255, 0);
img.savePng('../test.png', 0, function(error) {
if (error) throw error;
img.destroy();
})