mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-04-20 09:01:59 +03:00
Save photos as progressive when uploading
this fixes downloading images in some clients at resolutions >1280, namely tdesktop
This commit is contained in:
parent
d419979406
commit
7f2b2165d9
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user