From 90054890f34443845857d46b9333ea3b77c66489 Mon Sep 17 00:00:00 2001 From: Karl Stolley Date: Tue, 14 Oct 2025 14:11:06 -0500 Subject: [PATCH] api_docs: Add section on transcoded images. --- api_docs/message-formatting.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/api_docs/message-formatting.md b/api_docs/message-formatting.md index 191780e170..2358ec7ee2 100644 --- a/api_docs/message-formatting.md +++ b/api_docs/message-formatting.md @@ -172,6 +172,29 @@ backlogged, an individual message containing multiple image previews may be re-rendered multiple times as each image finishes thumbnailing and triggers a message update. +### Transcoded images + +Image elements whose formats are not widely supported by web browsers +(e.g., HEIC and TIFF) may contain a `data-transcoded-image` attribute, +which specifies a high-resolution thumbnail format that clients may +opt to present instead of the original image. If the +`data-transcoded-image` attribute is present, clients should use the +`data-original-content-type` attribute to decide whether to display the +original image or use the transcoded version. + +Transcoded images are presented with this structure in image previews: + +``` html +
+ + + +
+``` + ### Recommended client processing of image previews Clients are recommended to do the following when processing image