-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Advice needed XBM conversion #5
Comments
Hi Artem I described it here: Hope that helps 2015-12-03 11:56 GMT+01:00 Artem Pastukhov [email protected]:
|
Hi! #!/bin/bash
for icon in *png; do
convert $icon -depth 1 ./out/$(basename $icon .png)_1bpp.png
convert ./out/$(basename $icon .png)_1bpp.png -background white -alpha Background ./out/$(basename $icon .png)_1bpp.xbm
cat ./out/$(basename $icon .png)_1bpp.xbm | xxd -r -p |dd skip=6 bs=1 > ./out/$(basename $icon .png).xbm.mono
done
rm out/*png out/*xbm |
Black magic v2.0
For all the png files in current folder it convert to 1 bit per pixel first, then set background to white and save to xbm. After filter out all except hex array, convert to binary and write to resulting mono image |
Can you say how to convert images to MONO?
The text was updated successfully, but these errors were encountered: