Repost: image_tag issue, img_tag deprecated

Repost of an issue I originally posted posted in Shopify Apps forum by mistake. No Idea on how to close/delete that thread: https://community.shopify.com/topic/1443448

Hi! I had a problem where liquid would not output an image when using image_tag filter. I initially had an img_tag filter, which was working fine. But theme check told me it is a deprecated filter and that I should use image_tag instead. When I switched to image_tag, it would not work. The theme I was working on was not a 2.0 theme, so idk if it has something to do with that.
That suggestion pops up up also for the img_url filter, and probably others having img in them.

Also I think it’s annoying that a newly downloaded Dawn theme shows up a lot of errors in theme check, around 300, both in Shopify CLI: shopify theme check, and in Shopify Liquid VsCode extension, which shows syntax highlighting from theme check.

Additional question: how would you go about deactivating that particular rule (img_tag > image_tag) for all files in .theme-check.yml

Thanks,
Arti

Just in case, an answer has been posted by Lbnetprofit on this thread: https://community.shopify.com/topic/1443448

Hi,> > I just had the same problem. img_url is deprecated and image_url didn’t work the same way img_url did.> > Turns out the syntax is a little bit different.> > img_url for example looks like this:> > > {{ ... | img_url: '150x' }}> > > Copy> > image_url on the other hand looks like this:> > > {{ ... | image_url: width: 150 }}> > > Copy> > Reference:> > https://shopify.dev/api/liquid/filters/url-filters#image_url> > https://shopify.dev/api/liquid/filters/deprecated-filters#img_tag> > Hope I could help!> > Lukas