summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormsglm <msglm@techchud.xyz>2023-01-27 19:37:35 -0600
committermsglm <msglm@techchud.xyz>2023-01-27 19:37:35 -0600
commit58dc0de7e04442103bea04ab4c70fabec2270ea4 (patch)
treebc7cfd496b07bb363b07c8b6daf3d548754546cd
parent0d05ef1e12314985988e567ac22a179d0f646899 (diff)
downloadmsglm-dotfiles-58dc0de7e04442103bea04ab4c70fabec2270ea4.tar.gz
msglm-dotfiles-58dc0de7e04442103bea04ab4c70fabec2270ea4.tar.bz2
msglm-dotfiles-58dc0de7e04442103bea04ab4c70fabec2270ea4.zip
new program: sovl-dither
-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"