Catalogue / zulip-2026-image-thumbnailing

Zulip thumbnails uploaded images in background workers with libvips and has clients pick the size and format

Zulip. Image thumbnailing for avatars, emoji, realm logos and file uploads.

Organisation
Zulip
Evidence
Reported from production
Source
Thumbnailing

Zulip documentation (Read the Docs), published 2026 (No date printed: a living latest-docs page, so the retrieval year is given. Its only date, a copyright range ending 2021, predates versions it names.)

Records

Decision#d1

Store the original upload at once and generate image thumbnails in a background worker, showing a spinner until they exist

Decision#d2

Tell clients the supported thumbnail formats and sizes and let them rewrite the image URL, generating missing variants on demand

Decision#d3

Limit libvips to the fuzz-tested image parsers Zulip expects, because thumbnailing parses untrusted input

Decision#d4

Serve avatars and emoji from permanent public URLs with non-enumerable hashed filenames

Decision#d5

Keep the original emoji and realm logo next to their thumbnails so they can be re-thumbnailed later

Sign in to read what was chosen, what was rejected and what it cost, each with its place in the source. An account is free. The job-queue cards are open without one.