From 55d82c5843256912a3fcbe09c0df5b9042281b6c Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Fri, 26 Aug 2022 09:05:55 +0200 Subject: [PATCH] Also save outbox attachment thumbnails as webp --- app/uploads.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/uploads.py b/app/uploads.py index 9e4cc23..a3f657a 100644 --- a/app/uploads.py +++ b/app/uploads.py @@ -65,7 +65,7 @@ async def save_upload(db_session: AsyncSession, f: UploadFile) -> models.Upload: original_image.thumbnail((740, 740)) original_image.save( UPLOAD_DIR / f"{content_hash}_resized", - format=original_image.format, + format="webp", ) except Exception: logger.exception(