Skip to content

PEZ/magick-pango-babashka

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ImageMagick + Pango + Babashka = ♥️

A Docker image to power your pictures + text compositions.

Usage

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:

Versions

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.

License

MIT. See license file.