mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 01:16:35 +03:00
Change maximum photo size to 2560px (#4024)
This commit is contained in:
parent
cc3d25eeb8
commit
1f8b59043b
|
@ -36,7 +36,7 @@ class _CacheType:
|
||||||
|
|
||||||
|
|
||||||
def _resize_photo_if_needed(
|
def _resize_photo_if_needed(
|
||||||
file, is_image, width=1280, height=1280, background=(255, 255, 255)):
|
file, is_image, width=2560, height=2560, background=(255, 255, 255)):
|
||||||
|
|
||||||
# https://github.com/telegramdesktop/tdesktop/blob/12905f0dcb9d513378e7db11989455a1b764ef75/Telegram/SourceFiles/boxes/photo_crop_box.cpp#L254
|
# https://github.com/telegramdesktop/tdesktop/blob/12905f0dcb9d513378e7db11989455a1b764ef75/Telegram/SourceFiles/boxes/photo_crop_box.cpp#L254
|
||||||
if (not is_image
|
if (not is_image
|
||||||
|
|
Loading…
Reference in New Issue
Block a user