aboutsummaryrefslogtreecommitdiffstats
path: root/bin/picc
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2021-09-19 14:53:31 +0200
committerRomain Gonçalves <me@rgoncalves.se>2021-09-19 14:54:23 +0200
commit459a48f299c188bbfc024fe14657e3d4802a0b6b (patch)
treeaaed5d3ea5ea2f2ef596e3743d2395b5fe55841a /bin/picc
parent1a694966454c5ef3baa5ff831e2671a5a964ce7e (diff)
downloadrgoncalves.se-459a48f299c188bbfc024fe14657e3d4802a0b6b.tar.gz
src: September sync
Diffstat (limited to 'bin/picc')
-rwxr-xr-xbin/picc9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/picc b/bin/picc
new file mode 100755
index 0000000..f25d6d9
--- /dev/null
+++ b/bin/picc
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -xe
+
+[ ! -f "${1}" ]
+[ -f "${2}" ]
+[ -n "${3}" ]
+
+convert "${2}" -dither Riemersma -colors 16 "${3}"
remember that computers suck.