summaryrefslogtreecommitdiff
path: root/conv.sh
diff options
context:
space:
mode:
authoruvok2025-07-17 20:51:43 +0200
committeruvok2025-07-17 20:51:43 +0200
commitd7f81ae55d0f7fd1ec7739bc326fdfa3325b12ce (patch)
tree7cf500678045aeb7366940a16b56155211a1a3fd /conv.sh
parenta2d601cc2b8d98d5aaf56942833a67a934bd0452 (diff)
Add conversion script
Diffstat (limited to 'conv.sh')
-rw-r--r--conv.sh8
1 files changed, 8 insertions, 0 deletions
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