diff options
| author | uvok | 2025-07-17 20:51:43 +0200 |
|---|---|---|
| committer | uvok | 2025-07-17 20:51:43 +0200 |
| commit | d7f81ae55d0f7fd1ec7739bc326fdfa3325b12ce (patch) | |
| tree | 7cf500678045aeb7366940a16b56155211a1a3fd | |
| parent | a2d601cc2b8d98d5aaf56942833a67a934bd0452 (diff) | |
Add conversion script
| -rw-r--r-- | conv.sh | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |
