forked from forks/microblog.pub
Also save outbox attachment thumbnails as webp
This commit is contained in:
parent
53a31ae562
commit
55d82c5843
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ async def save_upload(db_session: AsyncSession, f: UploadFile) -> models.Upload:
|
||||||
original_image.thumbnail((740, 740))
|
original_image.thumbnail((740, 740))
|
||||||
original_image.save(
|
original_image.save(
|
||||||
UPLOAD_DIR / f"{content_hash}_resized",
|
UPLOAD_DIR / f"{content_hash}_resized",
|
||||||
format=original_image.format,
|
format="webp",
|
||||||
)
|
)
|
||||||
except Exception:
|
except Exception:
|
||||||
logger.exception(
|
logger.exception(
|
||||||
|
|
Loading…
Reference in a new issue