forked from rDrama/rDrama
1
0
Fork 0

fix the resolution restriction applying for sidebar

master
Aevann 2024-03-09 16:48:09 +02:00
parent f9c8042cf4
commit 0cb4c7aeb4
1 changed files with 5 additions and 4 deletions

View File

@ -63,6 +63,7 @@ def submit_art_post(v):
file.save(highquality) file.save(highquality)
process_image(highquality, v) #to ensure not malware process_image(highquality, v) #to ensure not malware
if kind == "banner":
with Image.open(highquality) as i: with Image.open(highquality) as i:
if i.width != 2000 or i.height != 200: if i.width != 2000 or i.height != 200:
os.remove(highquality) os.remove(highquality)