tidbyt / hdk

A community supported firmware for the Tidbyt hardware 🤓
https://tidbyt.com
Apache License 2.0
49 stars 12 forks source link

webp color swap #13

Open wolffiex opened 1 month ago

wolffiex commented 1 month ago

Creating webp images with cwebp lossless it appears that color information is interpreted incorrectly. The following code takes an image that displays correctly in my web browser and makes it display correctly on my device

def swap_palette(frame):
    r, g, b = frame.convert("RGB").split()
    return Image.merge("RGB", (b, r, g))

I don't think this is a problem with PIL as images I create with Preview on my mac and convert with cwebp have the same issue.

smith-kyle commented 1 month ago

I'm seeing the same thing