Created
January 14, 2024 00:26
-
-
Save tstellanova/ccb3ee96eba62d2da128c806ec5b26d6 to your computer and use it in GitHub Desktop.
Create 1bpp raw data file from any image with imagemagick, for eg embedded rust custom mono fonts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# first, install imagemagick, eg on debian: | |
# sudo apt install libpng-dev libjpeg-dev libtiff-dev imagemagick | |
convert input_image.png -depth 1 gray:output.raw |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment