Node.js Generate Dynamic png image without canvas

299 Views Asked by At

I need to generate a image without canvas without existing png file. Thing i want writing some text to png then sending it using express js. (I not going to save it to disk, send to user on the fly) (Reason im asking this is i cannot install node-canvas beacuse node-gyp causing issues.)

like

res.contentType("image/png"); res.send(pngBytes);

Any libraries i can do it, with a example?

0

There are 0 best solutions below