From d7f81ae55d0f7fd1ec7739bc326fdfa3325b12ce Mon Sep 17 00:00:00 2001 From: uvok Date: Thu, 17 Jul 2025 20:51:43 +0200 Subject: Add conversion script --- conv.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 conv.sh (limited to 'conv.sh') diff --git a/conv.sh b/conv.sh new file mode 100644 index 0000000..fb9b053 --- /dev/null +++ b/conv.sh @@ -0,0 +1,8 @@ + + +new_width=200 +new_height=200 +convert "$1" -resize ${new_width}x${new_height} -colorspace Gray -dither Floyd-Steinberg -monochrome output.jpg +convert "$1" -resize ${new_width}x${new_height} -colorspace Gray -dither Floyd-Steinberg -monochrome output.xbm +convert "$1" -resize ${new_width}x${new_height} -colorspace Gray -ordered-dither o8x8,4 -depth 1 output2.jpg +convert "$1" -resize ${new_width}x${new_height} -colorspace Gray -ordered-dither o8x8,4 -depth 1 output2.xbm -- cgit v1.2.3