Skip to content

Commit

Permalink
lossless is slow
Browse files Browse the repository at this point in the history
just make it as fast as can be - same as 6fc0e28
  • Loading branch information
totaam committed Nov 25, 2021
1 parent fcd2116 commit f9d1bc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xpra/codecs/pillow/encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def encode(coding : str, image, options):
kwargs["optimize"] = True
elif coding=="webp" and q>=100:
kwargs["lossless"] = 1
kwargs["quality"] = max(0, 50-speed//2)
kwargs["quality"] = 0
pil_fmt = coding.upper()
else:
assert coding in ("png", "png/P", "png/L"), "unsupported encoding: %s" % coding
Expand Down

0 comments on commit f9d1bc3

Please sign in to comment.