Sample image generator to dynamically create images suitable for Aotal assessment apps (as described at http://talentappstore.github.io/tas-tenant-apis/doc/assessment-apps.html), using node-canvas.
To run on server:
git clone https://github.com/talentappstore/imageGen.git cd imageGen docker build -t imagegen . docker run -d -p 8081:8081 --restart unless-stopped imagegen
Images will now be served at (e.g. for a score of 77):
Areas for improvement:
- more image types
- add a signature param, so that only users with the generator's secret key can create working urls (we don't want miscreants hosting 52x32 porn images :)
- add varnish to cache images server-side