These are some tools for working with 1-bit bitmaps.
All files are raw bytes, no metadata is included. Think PBM but even less.
A 1 is white, a 0 is black.
usage: convert <input> <output>
Convert a PNG to 1-bit format. Alpha is discarded.
$ convert demo.png demo.1bpp
Image bounds: (0,0)-(16,4)
$ hexyl demo.1bpp
┌────────┬─────────────────────────┬─────────────────────────┬────────┬────────┐
│00000000│ 55 00 aa ff ff aa 00 55 ┊ │U⋄××××⋄U┊ │
└────────┴─────────────────────────┴─────────────────────────┴────────┴────────┘
$
usage: print <file> <width> <height>
Prints a bitmap to the console using box drawing characters.
$ print demo.1bpp 16 4
┏━━━━━━━━━━━━━━━━┓
┃ █ █ █ █ ┃
┃█ █ █ █ ████████┃
┃█████████ █ █ █ ┃
┃ █ █ █ █┃
┗━━━━━━━━━━━━━━━━┛
$