From fdefe0e48f674be25636ed9e34a37980c3122220 Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Tue, 13 Jun 2023 11:54:02 -0400 Subject: [PATCH] Trying to fix a logging bug? --- app/routers/hosted_file.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/routers/hosted_file.py b/app/routers/hosted_file.py index 6dcabee..a36408c 100644 --- a/app/routers/hosted_file.py +++ b/app/routers/hosted_file.py @@ -807,7 +807,13 @@ async def convert_file( # 2K 2048x1080 # HD 1920x1080 # Save as webp with 3840 size and 90 lossy quality works well for posters. Better than in the past with PNG. Higher resolution and smaller file size! -2023-05-04 - images = convert_from_path(full_file_path, size=(3840, None)) # 2160 works well + + + return mk_resp(data=None, status_code=500, response=commons.response) + + + # images = convert_from_path(full_file_path, size=(3840, None)) # 2160 works well + images = [] # delete this for image in images: # *** Part 1: *** Convert the file and save the file to tmp and then save the hashed file to hosted_files directory.