Update process generate thumbnails

This commit is contained in:
hlohaus
2025-06-15 12:48:24 +02:00
parent dbef5facb6
commit c6bfddecae
4 changed files with 45 additions and 24 deletions

View File

@@ -383,8 +383,7 @@ class Backend_Api(Api):
image = Image.open(copyfile)
thumbnail_dir = os.path.join(bucket_dir, "thumbnail")
os.makedirs(thumbnail_dir, exist_ok=True)
image = process_image(image)
image.save(os.path.join(thumbnail_dir, filename))
process_image(image, save=os.path.join(thumbnail_dir, filename))
except Exception as e:
logger.exception(e)
elif is_supported: