Sign inSign up

realpolyglot/node-canvas-docker

By realpolyglot

•Updated over 3 years ago

An internal utility script to generate thumbnail using node canvas.

Image
0

1.8K

realpolyglot/node-canvas-docker repository overview

⁠Node Canvas

An internal utility script to generate thumbnail using node canvas⁠. View source on Github⁠

⁠Environment Variables

KeyDescription
IMAGEPATHContent Cell
MODELFilename
BACKGROUNDBackground 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

Tag summary

Content type

Image

Digest

sha256:c8b387ca6…

Size

288.9 MB

Last updated

over 3 years ago

docker pull realpolyglot/node-canvas-docker