https://pasteboard.co/Hk60KEv.png
Of course there are plenty of compression artifacts, but very impressive for just 1220 bytes of image data embedded in decompressor written in C totaling only 3984 bytes of source code!
No idea about what kind of service pasteboard.co is, hopefully the image will stay up for a while...
Edit: For comparison, here's a roughly corresponding original Lena image converted into 1269 byte 128x128 JPEG.
convert -resize 128x128 -strip -quality 12% lena.png lena.jpg
https://pasteboard.co/Hk67yXC.pngHehe...
50kB to 4kB is a 10x compression, it doesn't seem that huge, what's the achievement here?
"The uncompressed image is 12 times larger than the source code of the program which includes the image data and the complete decoder. The actual image data is 1220 byte long, which gives a compression ratio of 40. Using a JPEG-like algorithm would not be enough to reach this level of compression (the Lena image would be barely recognizable). So the algorithm is based on the latest advances in image compression."
> The actual image data is 1220 byte long, which gives a compression ratio of 40.
make && ./prog < lena512.bin | imgcat ./prog < lena512.bin | display
---btw, the `animate` program can also be used to display the animated GIFs from endoh1.
If we're lucky, Bellard might eventually post an image compressor program on his website at https://bellard.org/.