9

I've made dynamic image generate service like this https://dummyimage.com/ by PHP. now I'm thinking of make a dynamic image generator with nodejs. but it's not as easy as thought. what kind of module can I use for dynamic image generate?

superjang
  • 91
  • 1
  • 1
  • 2

3 Answers3

5

Another possibility is to use the pureimage package which is a pure JavaScript implementation of the HTML Canvas 2D API for NodeJS. It has no native dependencies.

Marcus
  • 1,097
  • 11
  • 21
3

you may use this node module for generating random images. https://www.npmjs.com/package/js-image-generator

itsrajon
  • 283
  • 2
  • 15
0

I created a thing that generates images from a "function app". Hosting this on Azure costs me only "pennies per month".

You can copy my code and repurpose it. (also function apps support using javascript, which would work similarly)

https://github.com/djangofan/chord-bars

djangofan
  • 28,471
  • 61
  • 196
  • 289