Covers are served at full size today. The lexicon allows cover blobs up to 2,000,000 bytes, and the catalog replicas work (ADR 7) now captures and serves them as-is. Grids and feed strips on the planned iOS app would load the full blob where a thumbnail of roughly 30 KB would do, which matters on mobile data.
Proposal: a side worker that produces derived thumbnails (for example 600px and 200px WebP) for captured and proxied covers, cached by the original blob's CID, served by the existing cover proxy with an immutable cache lifetime.
Constraints:
- Never replace or re-encode the captured blob. A replica's proof depends on byte identity: the cover CID is in the signed record, and adopters re-upload identical bytes. Thumbnails are derived serving artifacts only.
- Erlang/OTP has no image codecs. The likely engine is
vix(Elixir NIF binding to libvips, believed to ship precompiled NIFs with libvips bundled) behind a thin Gleam FFI module. That needs an Elixir/Mix toolchain at build time (Dockerfile change). Alternatives:eimp(needs libgd/libjpeg/libpng/libwebp in the image),mogrify(ImageMagick binary). - A NIF crash takes the VM down. vix uses dirty schedulers, but consider running the worker as a separate release or sidecar so a bad image can't take ingest with it.
Trigger: build when the iOS grid shows the bandwidth or latency cost in practice, not before.
Questions to settle:
- Sizes and format (WebP vs AVIF) for grid, list row, and detail hero.
- In-process worker vs sidecar.
- Cache storage and eviction (disk volume vs object storage).