Sign inSign up

burnett0/alpine-drawio-batch

By burnett0

Updated over 5 years ago

Docker Image for converting draw.io documents to jpeg|png|svg|pdf using drawio-batch.

Image
0

3.8K

burnett0/alpine-drawio-batch repository overview

alpine-drawio-batch alpine-drawio-batch

Docker Image for converting draw.io compressed XML-documents to jpeg|png|svg|pdf using drawio-batch.

  • Node.js stable (Alpine)
  • Chromium

This image installs Chromium from the Alpine package repos in order to provide a fast build for drawio-batch.
Downloading Chromium via the underlaying puppeteer package would take insanely long.

Instructions:

FROM burnett0/alpine-drawio-batch

docker run <input-file> <output-file>

docker run test.drawio test.jpeg

Available flags:

--quality (Image quality for png|jpeg)

--scale (Scales the output file size for pixel-based output formats)

--format (pdf|svg|png|jpeg) (Not needed because format is determined from the output extension)
Example:
  1. Place your drawio document (test.drawio) into a folder (src) and mount that folder into your container.
  2. Run:

docker run burnett0/alpine-drawio-batch -v $(pwd)/src:/src --quality 100 --scale 1.0 src/test.drawio src/test.png


Github Action

This image is also available for Github Actions:

actions-drawio


Contribution

drawio-batch

Tag summary

Content type

Image

Digest

Size

210.4 MB

Last updated

over 5 years ago

docker pull burnett0/alpine-drawio-batch