remove hq images that dont fit requirements

remotes/1693045480750635534/spooky-22
Aevann1 2022-09-11 03:28:26 +02:00
parent 4a128e5ab3
commit 55c20a67f5
1 changed files with 1 additions and 0 deletions

View File

@ -209,6 +209,7 @@ def submit_hat(v):
i = Image.open(highquality)
if i.width > 100 or i.height > 130:
os.remove(highquality)
return error("Images must be 100x130")
filename = f'/asset_submissions/hats/{name}.webp'