From 28bc4c6f60d6ae46eb187314364782146cad5605 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 19 Jun 2024 18:44:14 +0700 Subject: [PATCH] Revert "webp does not use 'studio' range unless we compress with Pillow" This reverts commit d6d59a07116fdea90f75290133baded570533527. --- xpra/codecs/webp/decoder.pyx | 1 + 1 file changed, 1 insertion(+) diff --git a/xpra/codecs/webp/decoder.pyx b/xpra/codecs/webp/decoder.pyx index af8dd6427e..fc9363bf73 100644 --- a/xpra/codecs/webp/decoder.pyx +++ b/xpra/codecs/webp/decoder.pyx @@ -336,6 +336,7 @@ def decompress_to_yuv(data: bytes, options: typedict, has_alpha=False) -> WebpIm show_plane_range("YUV"[i], planes[i], w // xdiv, strides[i], h // ydiv) img = WebpImageWrapper(0, 0, w, h, planes, "YUV420P", (3+alpha)*8, strides, 3+alpha, ImageWrapper.PLANAR_3+alpha) + img.set_full_range(False) img.cython_buffer = buf return img