Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Image error 404 on GitHub Pages

My page doesn't want to load the image: Console log

But it's 100% there. Everything works fine on my local machine. I didn't messed up with branches and paths.

Github pages setup

Stackowerflow doesn't allow me to provide more than 2 links yet due to my low reputation, so I'll provide them in comments

like image 517
Alex Glinskiy Avatar asked Sep 10 '25 17:09

Alex Glinskiy


2 Answers

I faced this case and my problem is I set the image path starting '/......' not './....' it works on local but github page.

like image 150
DBA James Choi Avatar answered Sep 13 '25 08:09

DBA James Choi


I was able to resolve this issue by reducing my image size. I had an image over 10MB, which does not work on the GitHub free plan.

like image 21
Sam Freund Avatar answered Sep 13 '25 08:09

Sam Freund