My local with pictures worked. Now with GitHub pages the pictures won’t show up even if one video worked from the same database folder. I rechecked all potential pathways for src and nothing worked…I am really frustrated with Github Pages’ quirks…
Check it out and see one on the right side.
This isn’t a “quirk of Github pages”, this is expected behavior from a Unix server, which Github is.
They were originally lowercase. The same error occurred. So I looked said jpg supposed to be cap. So I turned them to JPG.
No go either…
- Request URL:
- Request Method:
- Status Code:
- Remote Address:
- Referrer Policy:
default-src ‘none’; style-src ‘unsafe-inline’; img-src data:; connect-src ‘self’
Mon, 02 Nov 2020 18:54:46 GMT
gzip, deflate, br
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36
The capitalization must be exactly the same as the files in your repository. As long as that’s the case, upper or lower case or any mix all work just fine.
Looking at https://github.com/SCallahan101/EnglishTranslateASL/tree/master/database there is an
empty.jpg file. And indeed I can download https://scallahan101.github.io/EnglishTranslateASL/database/empty.jpg.
But when I do I see another issue: The file I get isn’t a JPEG file, it’s a git LFS reference. I’m not sure if Github Pages is supposed to support LFS, maybe anyone else knows?
Did you check the Alpahabet letters files too? They doesn’t appear too. LFS was helping me upload large files such as pictures. Which is inside database directory.
Same thing: If I use the exact same spelling (e.g. https://scallahan101.github.io/EnglishTranslateASL/database/A.jpg) I can download the file, but I only get an LFS reference file, not the image.
I just checked the documentation, and indeed:
- Git LFS cannot be used with GitHub Pages sites.
So you’ll have to put the images directly into the repository. Which shouldn’t be an issue at a few hundred KB per image at most. I’m not so sure about the videos (haven’t checked their size), if they’re bigger than a few (!) MB you should probably find somewhere else to host them.
You are correct…I’m dumbfounded because of other issues I had with upload the picture. The solution was using Git LFS. Now, you pointed it out as a problem…I wasn’t sure if you went in the right direction. Thank you! - https://github.com/git-lfs/git-lfs/issues/3498