Closed stijns96 closed 7 months ago
Hello @stijns96 !
The img_tag
is not a filter from the Liquid gem; it is a custom Liquid filter from Shopify.
There are many other filters that are only available through Shopify Themes. (Shopify Liquid Doc / image_tag doc)
For Shopify Theme development issues, it is best to reach out to the Shopify support team. The Liquid repo's Github Issue shouldn't be used for Shopify theme development supports since it is dedicated to the core functionality and development of the Liquid gem itself.
Issues and queries related to Shopify theme development-specific filters, tags, and objects are outside the scope of this repository.
Please direct your questions or concerns to the Shopify Support Center or the Shopify Community Forums for more targeted assistance
Thank you for your understanding and cooperation.
Hi there,
Expected web.dev
Current output
Explanation When using the following code with an
image_url
width of 500, the srcset will not output higher than the width that is set on the image itself. This is not really usefull for 2 and 3 DPR support. I actually like to see that the srcset has nothing to do with the width that is set on theimage_url
.Workaround Set the default src (with
image_url
) on either 2 or 3 DPR (depends on what you'd like to support) and add the default width to theimage_tag
.