[PR #10018] fix(server): video thumbnail colors when using webp #12730

Closed
opened 2026-02-05 15:02:23 +03:00 by OVERLORD · 0 comments
Owner

Original Pull Request: https://github.com/immich-app/immich/pull/10018

State: closed
Merged: Yes


Description

We pass a frame in yuv420p format to libwebp, which then converts it to RGB format. This conversion affects the final image's colors significantly as well as inducing loss of detail. JPEG is not affected, however. From testing, using an RGB format produces a much better image for WebP and looks nearly the same for JPEG.

How Has This Been Tested?

Before:

reptiles_yuv420p_1080

After:

reptiles_gbrpf32le_1080

**Original Pull Request:** https://github.com/immich-app/immich/pull/10018 **State:** closed **Merged:** Yes --- ## Description We pass a frame in yuv420p format to libwebp, which then converts it to RGB format. This conversion affects the final image's colors significantly as well as inducing loss of detail. JPEG is not affected, however. From testing, using an RGB format produces a much better image for WebP and looks nearly the same for JPEG. ### How Has This Been Tested? Before: ![reptiles_yuv420p_1080](https://github.com/immich-app/immich/assets/101130780/7e8bdab5-83a5-431f-871d-1aee01a80bae) After: ![reptiles_gbrpf32le_1080](https://github.com/immich-app/immich/assets/101130780/2e143d3a-491c-420b-8a99-d7647bc64b17)
OVERLORD added the pull-request label 2026-02-05 15:02:23 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#12730