I dont remember the purpose of this line

remotes/1693045480750635534/spooky-22
Aevann1 2022-09-10 02:38:06 +02:00
parent e058643f01
commit 744f847c73
1 changed files with 3 additions and 4 deletions

View File

@ -91,10 +91,9 @@ def process_video(file):
def process_image(filename=None, resize=0):
size = os.stat(filename).st_size
if resize != 100:
if size > 16 * 1024 * 1024 or not patron and size > 8 * 1024 * 1024:
os.remove(filename)
abort(413)
if size > 16 * 1024 * 1024 or not patron and size > 8 * 1024 * 1024:
os.remove(filename)
abort(413)
i = Image.open(filename)