blurhash icon indicating copy to clipboard operation
blurhash copied to clipboard

src from local directory not working

Open benhutchings opened this issue 4 years ago • 2 comments

Hi, I am having an issue with displaying an image from my local directory:

<img data-v-6383fb07="" src="~/assets/images/postcards/jake-starr-f.png" alt="green lawn grass during daytime" style="height: 100%; width: 100%; position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px;">

This fails to load the image, however loading an external image works fine, eg:

<img data-v-6383fb07="" src="https://image.nuxtjs.org/preview.png" alt="green lawn grass during daytime" style="height: 100%; width: 100%; position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px;">

This is most likely not an error with blur hash, but if someone can figure out what I'm doing wrong it'd be much appreciated! Thanks in advance

benhutchings avatar Feb 03 '21 18:02 benhutchings

I'm not entirely sure that this has anything to do with blurhash, but can you provide a reproduction of this? :) Then I can determine if it's an issue in BlurHash or not.

Thisen avatar Jul 14 '22 14:07 Thisen

This needs more information or maybe it should be closed because it's a pathing issue... I've run into a similar issue, if you're using react it should be loading your images from your build given you use CRA.

Garabed96 avatar Apr 17 '23 09:04 Garabed96