aboutsummaryrefslogtreecommitdiff
path: root/scripts/ditherify
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2021-10-20 12:43:26 -0400
committerGitHub <noreply@github.com>2021-10-20 12:43:26 -0400
commit914174bae1b3c3857709a2d213ea0a17d6a96b87 (patch)
tree6b3ae9b9b0b09987134ecf742b7ce8a5ae7a3cf3 /scripts/ditherify
parent0979a248b013741110f2fed8ca8eebf1878b7acc (diff)
downloadxesite-914174bae1b3c3857709a2d213ea0a17d6a96b87.tar.xz
xesite-914174bae1b3c3857709a2d213ea0a17d6a96b87.zip
change (#407)
Signed-off-by: Christine Dodrill <me@christine.website>
Diffstat (limited to 'scripts/ditherify')
-rwxr-xr-xscripts/ditherify5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/ditherify b/scripts/ditherify
new file mode 100755
index 0000000..9277f96
--- /dev/null
+++ b/scripts/ditherify
@@ -0,0 +1,5 @@
+#!/usr/bin/env nix-shell
+#! nix-shell -p imagemagick -i bash
+
+BASEDIR=$(dirname "$0")
+convert $1 -dither FloydSteinberg -remap ${BASEDIR}/gruvbox-dark.png $2