Change maximum photo size to 2560px (#4024)

This commit is contained in:
Nick80835 2023-01-18 11:37:56 -05:00 committed by GitHub
parent cc3d25eeb8
commit 1f8b59043b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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