Filters

image_url Filter

Builds a CDN URL for an image at a specific width (WebP when supported).

Copy or embed this snippet

{{ product.featured_image | image_url: width: 600 }}
{{ section.settings.banner | image_url: width: 2000, height: 800, crop: 'center' }}

Embed this snippet on your blog or docs — attribution link appreciated: HTML to Liquid Converter · Convert to Shopify section →

Practice in the converter workspace

Draft OS 2.0 section output after you choose the right design pattern.