My new image compression algorithm achieves rates of up to 632:1

Written by  on September 4, 2026 

๐ญ๐ฅ;๐๐ซ ๐ฅ๐ฅ๐ฆ๐๐„๐† ๐œ๐จ๐ฆ๐ฉ๐ซ๐ž๐ฌ๐ฌ๐ž๐ฌ ๐ข๐ฆ๐š๐ ๐ž๐ฌ ๐ข๐ง๐ญ๐จ ๐ฅ๐š๐ง๐ ๐ฎ๐š๐ ๐ž, ๐ง๐จ๐ญ ๐ฉ๐ข๐ฑ๐ž๐ฅ๐ฌ. ๐€ ๐ฏ๐ข๐ฌ๐ข๐จ๐ง ๐ฆ๐จ๐๐ž๐ฅ ๐ญ๐ฎ๐ซ๐ง๐ฌ ๐ญ๐ก๐ž ๐ข๐ฆ๐š๐ ๐ž ๐ข๐ง๐ญ๐จ ๐š ๐œ๐จ๐ฆ๐ฉ๐š๐œ๐ญ ๐‰๐’๐Ž๐ ๐๐ž๐ฌ๐œ๐ซ๐ข๐ฉ๐ญ๐ข๐จ๐ง.

This week, a meme made the rounds about a young prodigy inventing a new way to compress photos. The idea behind it: derive the content of the image with a multimodal #vision-language model, then store this instead of the image. And when you want to view it, an #image-generation model recreates the content.
Simple. ๐€๐ง๐ ๐ญ๐จ๐ญ๐š๐ฅ๐ฅ๐ฒ ๐‹๐Ž๐’๐’๐˜.
Running #JPEG with a quality setting 10 looks like archival preservation in comparison.

I saw the meme several times in my stream. Instead of laughing and getting back to work, I did the obvious thing: I built it.

Meet #llmPEG.

You get a tool for compression (driven by #Qwen-VL inside #ollama) and decompression (either #ComfyUI or the image-gen skill from #codex).
After the initial prototype was working, I did some refinement of the prompts with a GAN-ish style of loop: until we had – with the given metric – a sufficiently fitting reproduction.

Please don’t ask about wall-clock performance.
Compression: ~20 seconds.
Decompression: ~30 seconds.

But the compression rate! Always at least 100:1, if not better: check this page with examples: https://marcelpetrick.github.io/llmPEG/expanded.html

๐€๐ญ ๐Ÿ๐ข๐ซ๐ฌ๐ญ ๐ข๐ญ ๐ฐ๐š๐ฌ ๐š ๐ฆ๐ž๐ฆ๐ž, ๐ง๐จ๐ฐ ๐ข๐ญ ๐ข๐ฌ ๐š ๐ญ๐จ๐จ๐ฅ ๐Ÿ˜‰

Source code, if you want to run it yourself and/or contribute: https://github.com/marcelpetrick/llmPEG/

Video:

Category : 0xDEADBEEF โ€ข LLM โ€ข Python โ€ข solutions not code