Skip to content

Commit

Permalink
never expose pillow enums in network packets
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Aug 15, 2024
1 parent 404dc1c commit 3c66507
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 @@ -182,7 +182,7 @@ def encode(coding : str, image, options=None) -> Tuple[str,Compressed,Dict[str,A
else:
resample = LANCZOS
im = im.resize((scaled_width, scaled_height), resample=resample)
client_options["resample"] = resample
client_options["resample"] = getattr(resample, "name", str(resample))
if coding in ("jpeg", "webp"):
#newer versions of pillow require explicit conversion to non-alpha:
if pixel_format.find("A")>=0 and coding=="jpeg":
Expand Down

0 comments on commit 3c66507

Please sign in to comment.