https://github.com/pez/magick-pango-babashka
A Docker image to power your picture + text compostions
https://github.com/pez/magick-pango-babashka
babashka clojure docker image-magick pango
Last synced: 7 months ago
JSON representation
A Docker image to power your picture + text compostions
- Host: GitHub
- URL: https://github.com/pez/magick-pango-babashka
- Owner: PEZ
- License: mit
- Created: 2023-10-10T10:10:35.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-10-13T20:28:47.000Z (about 2 years ago)
- Last Synced: 2025-01-26T04:25:18.029Z (9 months ago)
- Topics: babashka, clojure, docker, image-magick, pango
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/cospaia/magick-pango-babashka/
- Size: 943 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ImageMagick + Pango + Babashka = ♥️
_A Docker image to power your pictures + text compositions._
* [ImageMagick](https://imagemagick.org/)
* [Pango](https://docs.gtk.org/Pango/pango_markup.html)
* [Babashka](https://babashka.org). (Wether you use it is up to you. It's wonderful.)
## UsageHere's an example adapted from https://imagemagick.org/Usage/text/
``` sh
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](https://github.com/PEZ/magick-pango-babashka/blob/master/examples/) folder to your computer and from inside it run:
``` sh
docker run -v "$(pwd)":/work -w /work cospaia/magick-pango-babashka examples/compose.clj output/composition.png
```Check the [examples/compose.clj](https://github.com/PEZ/magick-pango-babashka/blob/master/examples/compose.clj) script:
## Versions
These are the versions reported on my machine:
``` sh
$ 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](https://github.com/PEZ/magick-pango-babashka/blob/master/LICENSE).