Skip to content

preview_image object ​

The main image of a product or a category, in several sizes.

Properties ​


NameTypeDescription
originalstringURL of the original image
largestringURL of the large version
mediumstringURL of the medium version
smallstringURL of the small version
liquid
{% if product.preview_image %}
  <img
    src="{{ product.preview_image.medium }}"
    srcset="{{ product.preview_image.small }} 300w, {{ product.preview_image.medium }} 600w, {{ product.preview_image.large }} 1000w"
    alt="{{ product.name }}"
  >
{% endif %}