Skip to content

Commit

Permalink
output using the same colorspace used for encoding
Browse files Browse the repository at this point in the history
(which is actually premultiplied - but if we specify a premultiplied colorspace here then we end up premultiplying twice)
  • Loading branch information
totaam committed Nov 26, 2022
1 parent eb3b5f5 commit defecc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xpra/codecs/webp/decoder.pyx
Expand Up @@ -199,7 +199,7 @@ def decompress(data, has_alpha, rgb_format=None, rgb_formats=()):
log("webp decompress found features: width=%4i, height=%4i, has_alpha=%-5s, input rgb_format=%s", config.input.width, config.input.height, bool(config.input.has_alpha), rgb_format)

cdef int stride = 4 * config.input.width
config.output.colorspace = MODE_bgrA
config.output.colorspace = MODE_BGRA
if has_alpha:
if len(rgb_format or "")!=4:
#use default if the format given is not valid:
Expand Down

0 comments on commit defecc5

Please sign in to comment.