Menu Close

Get Support From ShopWired Close

All Systems Are Operational

Subscribe To Updates
Prefer To Live Chat? Chat directly with ShopWired support Available 9.00am to 7.00pm Monday to Friday
11.00am to 5.00pm Saturday
Quickest response time

Send A Message
Response within 24 hours

Menu Close

Menu

Image filters

In Twig you can apply a filter to an image in order to choose which image file is returned.

{{ product.photo_url }} will return the URL of the image file for the given product. You can apply the 'small' filter to output the smallest (in dimensions) version of the photo, e.g. {{ product.photo_url('small') }}

This can be useful if you are referencing the image for a product on a page that doesn't need to load the largest version (for example a category page).

The 'small' filter will return an image file no larger than 300px width.

The 'medium' filter will return an image file no larger than 500px width.

The 'large' filter will return an image file no larger than 1000px width.