summaryrefslogtreecommitdiffstats
path: root/.local/bin/sovl-dither
blob: 9262595c5470500f4b2f7469c42e851b8a4d1cce (plain) (blame)
1
2
3
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"