Is it possible to call or get particular product image in shopify liquid file?
I mean is it possible to get a particular image through a handle or id. Does liquid have a filter tag for that purpose.
With asset url, this is possible.
{{ 'my-image.png' | asset_url }}
But I just wanted to know whether this is possible with product images.
Something like this:
{{ product.images | product_img_url: 'red-xl-vertical-product' }}
I hope you got it.
Rather than looping and displaying all the product images I have a used case where a particular product image has to be called on the product page.
Is there an API for getting a particular product image by an id or a handle rather than image index in the product.liquid
file?
Or can someone suggest alternatives other than storing them in the assets folder?