From 58dc0de7e04442103bea04ab4c70fabec2270ea4 Mon Sep 17 00:00:00 2001 From: msglm Date: Fri, 27 Jan 2023 19:37:35 -0600 Subject: new program: sovl-dither --- .local/bin/sovl-dither | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 .local/bin/sovl-dither (limited to '.local/bin/sovl-dither') 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" -- cgit v1.2.3