ImageMagick + Pango Docker (+ Babashka)
5.2K
A Docker image to power your pictures + text compositions.

Here's an example adapted from https://imagemagick.org/Usage/text/
docker run --rm -v $(pwd)/output:/output cospaia/magick-pango-babashka convert -background lightblue pango:"Anthony Thyssen" /output/pango.gif
Note that we use the convert command here, where the original example uses magick. This is because ImageMagick < 7 didn't have the magick command. See about versions below.
To generate the image decorating this repository, you can copy the examples folder to your computer and from inside it run:
docker run -v "$(pwd)":/work -w /work cospaia/magick-pango-babashka examples/compose.clj output/composition.png
Check the examples/compose.clj script:
These are the versions reported on my machine:
$ docker run cospaia/magick-pango-babashka convert -version
Version: ImageMagick 6.9.11-60 Q16 aarch64 2021-01-25 https://imagemagick.org
Copyright: (C) 1999-2021 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC Modules OpenMP(4.5)
Delegates (built-in): bzlib djvu fftw fontconfig freetype heic jbig jng jp2 jpeg lcms lqr ltdl lzma openexr pangocairo png tiff webp wmf x xml zlib
$ docker run cospaia/magick-pango-babashka pango-view --version
pango-view (pango) 1.50.6
Note. The image is based on Ubuntu, which as of this writing only has packages for ImageMagick version 6.9.
MIT. See license file.
Content type
Image
Digest
sha256:a2d8d0dc3…
Size
207.4 MB
Last updated
almost 3 years ago
docker pull cospaia/magick-pango-babashkaPulls:
267
Last week