Help with HTML Custom code for image

Oh no my bot has gone, it’s been a while but I am writing a HTML custom component and forgot how to get an image up. my image is in “resources/curtains/pig.png” I have the code below but getting a “?” mark and no image any help gratefully received.

<img id="pig" src="resources/curtains/pig.png" alt="Pig">

/curtains/pig.png, not /resources/curtains…

Thanks will try tomorrow.

Thom I tried this and it didn’t work - also with ? and . so my non working code is:

<img

    <img src="/curtains/pig.png" alt="Pig">

    class="absolute inset-0 w-full h-full object-contain"

>

try <img src="/curtains/pig.png" alt="Pig" class="absolute inset-0 w-full h-full object-contain"/>

or <img src="/curtains/pig.png" alt="Pig" class="absolute inset-0 w-full h-full object-contain">
without the last /

THANKS tried both just get a “?” mark, I have tried this before and it worked - I dragged the image into code to get path the remove resources but for some unknown reason (to me) this one doesn’t work. I have tried it with another .png and that didnt work either.

Hi,
Is “pig.png” all in lower case in your resources folder ?

Yes as always

Is it possible to have the page URL where this occurs ?

I have only just started this for someone who owns a Lego Store. I have just purchased the domain names and waiting to transfer them so they are anywhere at moment so can’t help.

@PMUK

just your code

<img src="/resources/curtains/pig.png" alt="Pig" class="w-full h-full object-contain">

Steve once again indebted, I think the heat and humidity has damaged my brain - even more! Have a great weekend!