# irc-bitmap A format for sending IRC bitmaps inline. ## Format The format string shall be (in Python syntax) `r'` Results in: ![Pokemon Red window](https://ttm.sh/qX.png) ### `r16` - Raw arbitrary bitmaps, hexadecimal-encoded The header has this syntax: `r'(\d+).(\d+).(\d+)'`. The first and second capture groups specify the width and height of the image and the third group specifies the bitdepth. The payload is a hexadecimal representation of the image data. It has this syntax: `r'([0-9A-Fa-f]+)'`. 8x8, monochrome Example line: `` Results in: ![box](https://ttm.sh/qy.png) ### `ra85` - Raw arbitrary bitmaps, (Adobe) ascii85-encoded The header has this syntax: `r'(\d+).(\d+).(\d+)'`. The first and second capture groups specify the width and height of the image and the third group specifies the bitdepth. The payload is an (Adobe) ascii85-encoded representation of the image data. It has this syntax: `r'(<~[!-uz]+~>)'`. 8x8, monochrome See https://en.wikipedia.org/wiki/Ascii85#Example_for_Ascii85 for the encoding. See `ruby-ascii85` package in Debian for an implementation. TODO: see https://www.dcode.fr/ascii-85-encoding for a non-Adobe implementation that will save at least four bytes. Example line: `~>` Results in: ![box](https://ttm.sh/qy.png)