diff options
author | Zach van Rijn <me@zv.io> | 2023-12-06 09:39:18 -0600 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2023-12-06 10:17:47 -0600 |
commit | a656ccfe9382edc96b35f716b8ccd1694c2ab4ee (patch) | |
tree | 71078894e99ae6457a3e0e3d50773ff3f564ff6c /prepare-docker | |
parent | 082074c60c5a585977df1143db74db95f4d081c0 (diff) | |
download | wallpapers-a656ccfe9382edc96b35f716b8ccd1694c2ab4ee.tar.gz wallpapers-a656ccfe9382edc96b35f716b8ccd1694c2ab4ee.tar.bz2 wallpapers-a656ccfe9382edc96b35f716b8ccd1694c2ab4ee.tar.xz wallpapers-a656ccfe9382edc96b35f716b8ccd1694c2ab4ee.zip |
Switch from Imagemagick to Graphicsmagick.
Note that GM doesn't support gradient:angle so we
have to use a direction. It's radial, not linear,
but is completely acceptable.
Imagemagick silently introduces artifacts and fails
to composite images when the underlying gradient is
of the form { #AAAAAA --> #BBBBBB }, where R=G=B.
Note that { #AAAAAA --> #BBBBBC } works fine. This
is a real bug but isn't a wallpapers problem.
Add a 'prepare-docker' wrapper script, which simply
builds the tarball using a known Graphicsmagick and
not whichever happens to be on the generating system.
Diffstat (limited to 'prepare-docker')
-rwxr-xr-x | prepare-docker | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/prepare-docker b/prepare-docker new file mode 100755 index 0000000..4bf519f --- /dev/null +++ b/prepare-docker @@ -0,0 +1,8 @@ +#!/bin/sh -e + +docker run -e UIDGID=$(id -u):$(id -g) -v"$(dirname $(readlink -f "${0}"))":/x -w/x --rm -i alpine:3.18 <<'EOF' +apk add curl git graphicsmagick xz; +git config --global --add safe.directory /x; +/x/prepare; +chown "${UIDGID}" $(find . -mindepth 1 -maxdepth 1 -type f -name 'adelie-wallpapers-*.tar.xz'); +EOF |