/node-canvas-docker

An internal utility script to generate thumbnail using node canvas

Primary LanguageJavaScript

Node Canvas

An internal utility script to generate thumbnail using node canvas.

Environment Variables

Key Description
IMAGEPATH Content Cell
MODEL Filename
BACKGROUND Background Colour hex
PAGETEXT
COMPONENTTEXT
SUBCOMPONENTTEXT

Example

docker run --rm \
        -e IMAGEPATH="/screenshots" \
        -e MODEL="/page" \
        -e BACKGROUND="#716DF2" \
        -e PAGETEXT="PAGETEXT" \
        -e COMPONENTTEXT="COMPONENTTEXT" \
        -e SUBCOMPONENTTEXT="SUBCOMPONENTTEXT" \
        -v ~/Desktop/screenshots:/screenshots \
        realpolyglot/node-canvas-docker

Output

Alt text