Skip to content

Commit

Permalink
webp has a size limit of 16383x16383
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@26108 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Apr 13, 2020
1 parent 7459e42 commit 300f2e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xpra/server/window/window_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@ def get_auto_encoding(self, w, h, speed, quality, *_args):
if depth>24 and "rgb32" in co and self.client_bit_depth>24:
#the only encoding that can do higher bit depth at present
return "rgb32"
if depth in (24, 32) and "webp" in co and w>=2 and h>=2:
if depth in (24, 32) and "webp" in co and 16383>=w>=2 and 16383>=h>=2:
return "webp"
if "png" in co and ((quality>=80 and speed<80) or depth<=16):
return "png"
Expand Down

0 comments on commit 300f2e4

Please sign in to comment.