mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-05 22:24:14 -04:00
Thumbnail webp images as webp to avoid losing transparency
This commit is contained in:
parent
ddbd79a981
commit
cca37a0ecc
2 changed files with 7 additions and 5 deletions
|
@ -38,7 +38,7 @@ class ThumbnailError(Exception):
|
|||
|
||||
|
||||
class Thumbnailer:
|
||||
FORMATS = {"image/jpeg": "JPEG", "image/png": "PNG"}
|
||||
FORMATS = {"image/jpeg": "JPEG", "image/png": "PNG", "image/webp": "WEBP"}
|
||||
|
||||
@staticmethod
|
||||
def set_limits(max_image_pixels: int) -> None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue