Source code is here: https://github.com/samhocevar/zepto8.

Z8 compression for images and data

Select a file to upload.

Ordered Dithering High Color

The unz8 utility function:

Copy-paste this somewhere in your code. You only need one unz8() in your program.