From 9af435adf0a81a8f1ebf4e2ad55ff41ac6be32a1 Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 26 Dec 2022 04:14:09 +0200 Subject: [PATCH] im genuinely fucking retarded --- files/routes/posts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index d1aed371d..aeca01af4 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -748,12 +748,12 @@ def submit_post(v:User, sub=None): name2 = name.replace('.webp', 'r.webp') copyfile(name, name2) - post.thumburl = process_image(name2, v, resize=500) + post.thumburl = process_image(name2, v, resize=100) elif file.content_type.startswith('video/'): post.url = process_video(file, v) name = f'/images/{time.time()}'.replace('.','') + '.webp' subprocess.run(['ffmpeg', '-y', '-loglevel', 'warning', - '-i', post.url, '-vf', "scale='min(300,iw)':-2", + '-i', post.url, '-vf', "scale='min(500,iw)':-2", '-q:v', '3', '-frames:v', '1', name], check=True) post.thumburl = name elif file.content_type.startswith('audio/'):