Skip to content

image

An image.

Pass it to image_url to get a resized URL.

Available in: product.images, collection.image, image_picker settings…

Property Type Description
image.id string ID.
image.src string Original URL.
image.url string Same as src.
image.alt string Alt text.
image.width number Width.
image.height number Height.
image.aspect_ratio number Width ÷ height.
image.position number Position among the product’s media.
image.media_type string image.
image.presentation object presentation.focal_point, as CSS object-position.
Liquid
{{ product.featured_image.alt }} {{ product.featured_image.width }}×{{ product.featured_image.height }}
Output
Linen abaya 1600×2000

Shopify: Same as Shopify.

Since theme platform 1.0.

Was this page helpful?