pimoroni / inky

Combined library for V2/V3 Inky pHAT and Inky wHAT.
https://shop.pimoroni.com/?q=inky
MIT License
575 stars 121 forks source link

How to map palette to impression 7.3 colours and avoid dithering #162

Open ReX1983 opened 1 year ago

ReX1983 commented 1 year ago

Hello,

I have a Home Assistant dashboard that I want to show on the inky impression 7.3". I get the snapshot via headless chromium, then convert it to 800x480, but now I am facing a dithering issue and the final result is low quality.

The snapshot has just 9 colours:

I am not after colour accuracy, what I am hoping to achieve is to translate the above colour to the native colours of the impression screen, something like:

Is there a way to achieve this in either python or command line?

Thanks!