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