Skip to content

media

A media item attached to a product: image, video (adaptive streaming), or 3D model.

Properties

PropertyDescription
media.altAlt text.
media.aspect_ratioWidth ÷ height.
media.duration
media.embed_url
media.external_id
media.file_size_bytes
media.file_type
media.filename
media.heightHeight in px.
media.hostHost being served.
media.idUnique identifier.
media.media_typeMedia type (‘image’, ‘video’, ‘model’).
media.mime_type
media.positionPosition/order index.
media.presentation
media.preview_imagePreview image for the media.
media.product_id
media.sources
media.srcSource URL.
media.urlRelative URL of the resource.
media.variantsAll variants.
media.widthWidth in px.

Property list is generated from the storefront engine (MediaDrop), so it always matches what your theme can use. Inspect live values with {{ media | json }}.