summaryrefslogtreecommitdiff
path: root/conv.sh
diff options
context:
space:
mode:
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