Skip to content

MediaVariants

The renditions of a ready media file within the sizes of its purpose (see MediaUpload.purpose), never larger than the file. small, medium, and large are still: for an animation, its first frame, and for a video or audio file, its poster (absent without one). Clients pick one by its width (srcset), and show animated instead only when the user lets animations play and does not prefer reduced motion.

object
small
required

The still rendition for small views; WebP for an upload.

Schema: MediaVariant

object
medium
required

The still rendition for views across a screen; WebP for an upload.

Schema: MediaVariant

object
large
required

The largest still rendition, JPEG or PNG for an upload.

Schema: MediaVariant

object
animated
object

Example generated

{
"small": {},
"medium": {},
"large": {},
"animated": {}
}

For LLMs and coding agents:llms.txt,llms-full.txt, llms-small.txt

Analytics on this site