Skip to content

sample image generator for Aotal assessment app images, using node-canvas

License

Notifications You must be signed in to change notification settings

abraae/imageGen

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

sample image generator for Aotal assessment app images, using node-canvas

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%