From 41ead74a4c41a6590d8a08e4351223784d72deb4 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 22 Jan 2022 02:46:30 +0200 Subject: [PATCH] xczczx --- files/routes/posts.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index 51b85274d..5f9a225e2 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -627,6 +627,7 @@ def thumbnail_thread(pid): elif x.headers.get("Content-Type","").startswith("image/"): image_req=x + image = PILimage.open(BytesIO(x.content)) else: db.close() @@ -638,7 +639,7 @@ def thumbnail_thread(pid): for chunk in image_req.iter_content(1024): file.write(chunk) - post.thumburl = process_image(filename=name, resize=True) + post.thumburl = process_image(filename=name, resize=100) db.add(post) db.commit() db.close()