sample image generator for Aotal assessment app images, using node-canvas
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.dockerignore
.gitignore
Dockerfile
LICENSE
README.md
package.json
scoreWithIcon.js
server.js

README.md

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):

http://yourserver.com:8081/scoreWithIcon.png?score=77&label=A1

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