I have invented a bold and revolutionary method in order to compress any picture to only a few bytes (typically more or less one hundred).

Here is how it works in a few words :
It separates the three layers of a picture (RGB, but only stores one specific bit if they are similar).
For each layer, it defines the average brightness.
It divides a picture into a grid, where each cell is either "more light" or "more dark" than the parent average brightness (each is coded in one bit).
expl 01
Then it makes two average pictures out of the "light" and "dark" areas, and repeat the operation on them.
expl 02
It stops doing this when the picture is smaller than one pixel or the color is solid.

The source code for this is there

This is of course a lossy method, here are a few examples of original and compressed pictures (typically to about 128 bytes in my own .bpc format, converted back to .png here) :
A picture of Abraham Lincoln :
bool Pattern Pres photo 01 bool Pattern Pres photo 01.jpg B
A baloon :
bool Pattern Pres photo 02 bool Pattern Pres photo 02.jpg B
A camera :
bool Pattern Pres photo 03 bool Pattern Pres photo 03.jpg B
A wooden house :
bool Pattern Pres photo 10 bool Pattern Pres photo 10.jpg B
A flower :
bool Pattern Pres photo 14 bool Pattern Pres photo 14.jpg B
Some album cover :
bool Pattern Pres photo 19 bool Pattern Pres photo 19.jpg B
A typical landscape :
bool Pattern Pres photo 20 bool Pattern Pres photo 20.jpg B

And here is an example of .bpc file. It could probably fit in one tweet.


I didn't know about it back then but it might have something to do with the concept of self-affinity.


Here is an ulterior somehow similar test using voronoi shapes and quadtree based compression.


voronoi quadtree