- Getting Started
- Liquid reference
- Filters reference
- Tags reference
- Localization
- Theme structure
- Theme sections
- Theme assets
- Theme config
- Theme layout
- Theme templates
-
- article.liquid
- blog.liquid
- cart.liquid
- collection.liquid
- customer/account.liquid
- customer/addresses.liquid
- customer/details.liquid
- customer/login.liquid
- customer/order.liquid
- customer/register.liquid
- customer/reset-password.liquid
- home.liquid
- page.no-heading.liquid
- products.liquid
- search.liquid
- list-collections.liquid
- store-locator.liquid
- 404.liquid
- customer/activate_account.liquid
- customer/orders.liquid
- Submission
image
The image object represents a single image, such as an item of product.images or a variant.featured_image.
The image object has the following attributes:
image.src
Returns the URL of the image.
<img src="{{ image.src }}" alt="{{ image.alt }}">
image.id
Returns the unique ID of the image.
image.alt
Returns the alt text of the image.
image.type
Returns the type of the image.
Resizing an image
Use the img_url filter to request the image at a specific size instead of using image.src directly. Pass a size string such as 300x300.
<img src="{{ image | img_url: '300x300' }}">