Img not displaying - (file_img_url)

msoder
Excursionist
29 0 10

Hey everyone. I'm trying to display a png I added to the admin files for my account. 

 

<img src="{{ 'star-1@3x.png' | file_img_url: '150x150' }}" >

 

It only shows up as the following empty boxes (above the text) rather than the star png: 

Screenshot 2021-07-01 at 22.43.34.png

store: https://mathias-dev-test.myshopify.com/

pass: saycew

Any ideas? Thanks!

Replies 4 (4)

KetanKumar
Shopify Partner
36839 3635 11972

@msoder 

sorry can you try this 

https://shopify.dev/api/liquid/filters/url-filters

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
Webite
Shopify Partner
6 0 1

He already tried the code, seems fine but not working.

Get in touch for more help.
webite.rocks
Every pixel counts!

Webite
Shopify Partner
6 0 1

For some reason this seems to sometimes work and sometimes not.

I have succedeed in uisng file_url instead of file_img_url

But you cannot add crop in this case, so not sure if you can use it.

Get in touch for more help.
webite.rocks
Every pixel counts!
KetanKumar
Shopify Partner
36839 3635 11972

@Webite 

yes please share issue images

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing