forked from rDrama/rDrama
fix the resolution restriction applying for sidebar
parent
f9c8042cf4
commit
0cb4c7aeb4
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue