mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 01:16:35 +03:00
Save photos as progressive when uploading (#4089)
This commit is contained in:
parent
d419979406
commit
7b1b33f805
|
@ -77,7 +77,7 @@ def _resize_photo_if_needed(
|
|||
result.paste(image, mask=image.split()[alpha_index])
|
||||
|
||||
buffer = io.BytesIO()
|
||||
result.save(buffer, 'JPEG', **kwargs)
|
||||
result.save(buffer, 'JPEG', progressive=True, **kwargs)
|
||||
buffer.seek(0)
|
||||
return buffer
|
||||
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
# Versions should comply with PEP440.
|
||||
# This line is parsed in setup.py:
|
||||
__version__ = '1.28.3'
|
||||
__version__ = '1.28.4'
|
||||
|
|
Loading…
Reference in New Issue
Block a user