summaryrefslogtreecommitdiffstats
path: root/.local/bin
diff options
context:
space:
mode:
authormsglm <msglm@techchud.xyz>2023-01-27 20:11:58 -0600
committermsglm <msglm@techchud.xyz>2023-01-27 20:11:58 -0600
commit88c813566c346c6a0be249e053db558cc3e94407 (patch)
tree9ea16fa183db6c71b4348c6743c0ab3946f67999 /.local/bin
parentd612a94561d976f256624bdf83b906058da33268 (diff)
downloadmsglm-dotfiles-88c813566c346c6a0be249e053db558cc3e94407.tar.gz
msglm-dotfiles-88c813566c346c6a0be249e053db558cc3e94407.tar.bz2
msglm-dotfiles-88c813566c346c6a0be249e053db558cc3e94407.zip
sovl-dither now has better file names and more dither types
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/sovl-dither8
1 files changed, 6 insertions, 2 deletions
diff --git a/.local/bin/sovl-dither b/.local/bin/sovl-dither
index 9262595..61dd212 100755
--- a/.local/bin/sovl-dither
+++ b/.local/bin/sovl-dither
@@ -1,4 +1,8 @@
#!/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"
+convert -trim "upscaled_$1" -quantize transparent +dither -colors 64 -ordered-dither o2x2 -channel A -contrast-stretch 10% "dither_o2x2_upscaled_$1.jpg"
+convert -trim "upscaled_$1" -quantize transparent +dither -colors 64 -ordered-dither o2x2 -channel A -contrast-stretch 10% "dither_o3x3_upscaled_$1.jpg"
+convert -trim "upscaled_$1" -quantize transparent +dither -colors 64 -ordered-dither o2x2 -channel A -contrast-stretch 10% "dither_o4x4_upscaled_$1.jpg"
+convert -trim "$1" -quantize transparent +dither -colors 64 -ordered-dither o2x2 -channel A -contrast-stretch 10% "dither_o2x2_$1.jpg"
+convert -trim "$1" -quantize transparent +dither -colors 64 -ordered-dither o3x3 -channel A -contrast-stretch 10% "dither_o3x3_$1.jpg"
+convert -trim "$1" -quantize transparent +dither -colors 64 -ordered-dither o4x4 -channel A -contrast-stretch 10% "dither_o4x4_$1.jpg"