#RunLengthEncoding

R.L. Dane :Debian: :OpenBSD: 🍵 :MiraLovesYou:rl_dane@polymaths.social
2025-01-01

Wait... how can #sixel data be so small???

Is there some #RunLengthEncoding going on??

tmp $ alias l='stat -c "%s %n"'
tmp $ l test.png
5072 test.png
tmp $ convert test.png -colors 256 test.bmp
tmp $ l test.bmp
178986 test.bmp
tmp $ img2sixel test.bmp |wc -c
33764
tmp $ #WAT

Reading Wikipedia...

> Sixel also includes a rudimentary form of compression, using run-length encoding (RLE).

Ahhhhhh. Nicely done!

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst