Prediction-Encoded Pixels
This format is specifically designed to be for low-color pixel art (<=16 colors works best, up to 256 colors is supported).
It uses "Prediction by Partial Matching, Order-2" compression, which is able to compress packed-palette-indices smaller than GIF, PNG, and QOI, while sacrificing a bit of time. It's 2-10x slower than GIF/PNG/QOI (depending on the image), but often compresses the image 20-50% smaller than GIF/PNG (and multiple-times smaller than QOI).
If you care about compressed image size, this is for you. It's somewhere between GIF and WEBP (.webp can compress better at times, but it's painfully slow).
( this is currently in the EXPERIMENTAL phase! )
How to use it:
Use the C header like:
#define PEP_IMPLEMENTATION #include "PEP.h"
tree1
112x96 : 4 colors
... continue reading