mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-30 13:24:19 +00:00
Dont compress PNG files
This commit is contained in:
parent
e8f72c90f3
commit
6ad7260871
1 changed files with 7 additions and 2 deletions
|
|
@ -106,8 +106,13 @@ def set_cursor(cmd, width, height):
|
|||
|
||||
|
||||
def write_chunked(data, mode, width, height):
|
||||
data = standard_b64encode(zlib.compress(data))
|
||||
cmd = {'a': 'T', 'o': 'z'}
|
||||
cmd = {'a': 'T'}
|
||||
if mode == 'PNG':
|
||||
cmd['S'] = len(data)
|
||||
else:
|
||||
data = zlib.compress(data)
|
||||
cmd['o'] = 'z'
|
||||
data = standard_b64encode(data)
|
||||
add_format_code(cmd, mode, width, height)
|
||||
set_cursor(cmd, width, height)
|
||||
while data:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue