summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-x.local/bin/sovl-dither4
1 files changed, 4 insertions, 0 deletions
diff --git a/.local/bin/sovl-dither b/.local/bin/sovl-dither
new file mode 100755
index 0000000..9262595
--- /dev/null
+++ b/.local/bin/sovl-dither
@@ -0,0 +1,4 @@
+#!/bin/sh
+realesrgan -i "$1" -o "upscaled_$1"
+convert -trim "upscaled_$1" -quantize transparent +dither -colors 64 -ordered-dither o2x2 -channel A -contrast-stretch 10% "upscaled_$1.jpg"
+convert -trim "$1" -quantize transparent +dither -colors 64 -ordered-dither o2x2 -channel A -contrast-stretch 10% "$1.jpg"