An open API service indexing awesome lists of open source software.

https://github.com/patrickmcnamara/bi

Bad Image format. ".bi".
https://github.com/patrickmcnamara/bi

image image-format plaintext

Last synced: 4 months ago
JSON representation

Bad Image format. ".bi".

Awesome Lists containing this project

README

          

# Bad Image (`.bi`)

`bi` is a library for the BI image format.
The BI format encodes images so that they are essentially 2D matrices of plaintext color names such as those found in the [CSS Color Module Level 4](https://www.w3.org/TR/css-color-4/#named-colors) or hex quadruplets like `#FF69B4FF`.
There is also support for third party color models.
Nice.

For example, a valid 2x2 pixel image is:

```
bi,v1
red,green
blue,white
```

## Examples

---

![Before BI encoding.](./misc/lenna1.png)

Before BI encoding.

---

![After BI encoding using the CSS Color Module Level 4 color model. And re-encoded as PNG obvs.](./misc/lenna2.png)

After BI encoding using the CSS Color Module Level 4 color model. And re-encoded as PNG obvs.

---

## License

This project is licensed under the MIT license.