Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

thumbnail: Remove unused thumbnail sizes.

Alex Vandivere3a238fc896e
diff --git a/zerver/lib/thumbnail.py b/zerver/lib/thumbnail.py
index 928e2fe609b..e6d3475899e 100644
--- a/zerver/lib/thumbnail.py
+++ b/zerver/lib/thumbnail.py
@@ -82,15 +82,13 @@ class StoredThumbnailFormat(BaseThumbnailFormat):
# options on this list are the ones which are written into
# rendered_content.
THUMBNAIL_OUTPUT_FORMATS = [
- # For now, we generate relatively large default "thumbnails", so
- # that clients that do not understand the thumbnailing protocol
- # (e.g. mobile) get something which does not look pixelated.
+ # We generate relatively large default "thumbnails", so that
+ # clients that do not understand the thumbnailing protocol
+ # (e.g. mobile) get something which does not look pixelated. This
+ # is also useful when the web client lightbox temporarily shows an
+ # upsized thumbnail while loading the full resolution image.
ThumbnailFormat("webp", 840, 560, animated=True),
ThumbnailFormat("webp", 840, 560, animated=False),
- # 300x200 is the size preferred by the web client.
- ThumbnailFormat("webp", 300, 200, animated=True),
- ThumbnailFormat("webp", 300, 200, animated=False),
- ThumbnailFormat("jpg", 300, 200, animated=False),
]