forked from MarseyWorld/MarseyWorld
remove hq images that dont fit requirements
parent
4a128e5ab3
commit
55c20a67f5
|
@ -209,6 +209,7 @@ def submit_hat(v):
|
||||||
|
|
||||||
i = Image.open(highquality)
|
i = Image.open(highquality)
|
||||||
if i.width > 100 or i.height > 130:
|
if i.width > 100 or i.height > 130:
|
||||||
|
os.remove(highquality)
|
||||||
return error("Images must be 100x130")
|
return error("Images must be 100x130")
|
||||||
|
|
||||||
filename = f'/asset_submissions/hats/{name}.webp'
|
filename = f'/asset_submissions/hats/{name}.webp'
|
||||||
|
|
Loading…
Reference in New Issue