Skip to content

Commit

Permalink
#3837 don't use Pillow for webp
Browse files Browse the repository at this point in the history
somehow the images decoded seem to have 'studio' range
  • Loading branch information
totaam committed Jun 19, 2024
1 parent 138fea3 commit d06a100
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions tests/unittests/unit/codecs/color_range_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ def do_test_encode_decode_range(self,
"50": 4,
"10": 0xc if fmt in ("webp", ) else 4,
}.items():
if enc_name == "enc_pillow" and fmt == "webp":
tolerance *= 2 # not sure why, but we don't really care is it should not be used
enc_options = typedict({"quality": quality})
bdata = enc_mod.encode(fmt, image, options=enc_options)
# tuple[str, Compressed, dict[str, Any], int, int, int, int]
Expand Down
2 changes: 1 addition & 1 deletion xpra/codecs/pillow/encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

log = Logger("encoder", "pillow")

ENCODE_FORMATS = os.environ.get("XPRA_PILLOW_ENCODE_FORMATS", "png,png/L,png/P,jpeg,webp").split(",")
ENCODE_FORMATS = os.environ.get("XPRA_PILLOW_ENCODE_FORMATS", "png,png/L,png/P,jpeg").split(",")

Image.init()

Expand Down

0 comments on commit d06a100

Please sign in to comment.