Image Dimensions Through Liquid

Tourist
10 0 14

Does Shopify allow you to use liquid to give you the dimensions of the product image? - i.e. I'm using this {{ image.src | img_url: '1024x1024' }} but not all of my images are 1024x1024 and I need their exact dimensions

Thanks!

0 Likes
Highlighted
Shopify Partner
1366 24 244

For available images please see: http://cheat.markdunkley.com/

To set an exact image size you can use something like https://www.imgix.com/ and define the w and h parameter

https://sections.design tips, tricks & Shopify sections
0 Likes