diff options
author | WGH <wgh@torlan.ru> | 2020-06-05 13:54:27 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-05 11:54:27 +0100 |
commit | e55ee7c32fb3d958fb9da4e34133f53a6c57d2ea (patch) | |
tree | da43d77e13d1db6d979fb9e122690544d913dbd2 /synapse/config/repository.py | |
parent | Performance improvements and refactor of Ratelimiter (#7595) (diff) | |
download | synapse-e55ee7c32fb3d958fb9da4e34133f53a6c57d2ea.tar.xz |
Add support for webp thumbnailing (#7586)
Closes #4382 Signed-off-by: Maxim Plotnikov <wgh@torlan.ru>
Diffstat (limited to 'synapse/config/repository.py')
-rw-r--r-- | synapse/config/repository.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/config/repository.py b/synapse/config/repository.py index 9d2ce20220..b751d02d37 100644 --- a/synapse/config/repository.py +++ b/synapse/config/repository.py @@ -70,6 +70,7 @@ def parse_thumbnail_requirements(thumbnail_sizes): jpeg_thumbnail = ThumbnailRequirement(width, height, method, "image/jpeg") png_thumbnail = ThumbnailRequirement(width, height, method, "image/png") requirements.setdefault("image/jpeg", []).append(jpeg_thumbnail) + requirements.setdefault("image/webp", []).append(jpeg_thumbnail) requirements.setdefault("image/gif", []).append(png_thumbnail) requirements.setdefault("image/png", []).append(png_thumbnail) return { |