fix emoji size

pull/195/head
Aevann 2023-08-25 06:38:15 +03:00
parent c0427f6ecb
commit de2536aeba
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ def process_image(filename, v, resize=0, trim=False, uploader_id=None, db=None):
try:
with Image.open(filename) as i:
if size > max_size:
if not resize and size > max_size:
ratio = max_size / size
resize = i.width * ratio