I got really bored so I wrote a simple dithering tool in Kotlin. It is surprising how little loss you get when reducing an image to 8 colors. Source code: https://gist.github.com/Frederikam/115a15450bec82720d3bb5a70b5ceefd
Wow that's quite something. I guess it's kind of like using more than one pixel as a pixel, displaying the colour using a number of dots... presumably it can't be saved as a jpeg though? Is it a png?
@puffinux It can be saved as JPG, but the result is quite poor
The algorithm only deals with one pixel at a time, but tries to distribute the errors to unprocessed pixels, creating more balance
Interesting... I've heard people say that as it reduces file size, it's a useful technique for sites that operate on poor internet speeds / for people browsing with slow internet.
@puffinux In theory you could represent a pixel as 3 bits without further compression
Oh right 😅 I don't know what I'm talking about. Just thinking it through I guess.
Welcome to your niu world ! We are a cute and loving international community Ｏ(≧▽≦)Ｏ !