WebP2 triangle preview


We use triangulation + colormap to compress images into a very small preview. See the paper presented at ICIP 2018.
The compressed data is the base64 input of the text-area below. The decoder is ~400 lines of javascript + WebGL.

The libwebp2 repository is located at https://chromium.googlesource.com/codecs/libwebp2.
You can generate preview base64-strings using for instance: extras/mk_preview input.png -b64.
The mk_preview research tool contains a lot of optimizing options to play with.

Some pre-calculated examples:


Decoded result
Decoded result




show triangles
noise amplitude
decoded image width

Text version of the compressed data: