Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webp color swap #13

Open
wolffiex opened this issue May 21, 2024 · 1 comment
Open

webp color swap #13

wolffiex opened this issue May 21, 2024 · 1 comment

Comments

@wolffiex
Copy link

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
Copy link

I'm seeing the same thing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants