Skip to content

image_url

URL of an image at a size, served as WebP from the CDN.

Pass an image, or a product, variant, collection or line item (its first image). width alone returns the smallest pre-generated size at least that wide; height or crop return a signed, resized copy. Chain image_tag to get a responsive <img>.

image | image_url: width: 800, height: 600, crop: 'center'
Name Type Description
width number Width in pixels.
height number Height in pixels.
crop string center, top, bottom, left or right (with height or square).

string

Liquid
{{ product.featured_image | image_url: width: 720 }}
Output
https://cdn.sooquna.store/s/sample/abaya.jpg

Since theme platform 1.0.

Was this page helpful?