图片未显示在GitHub托管的网站上 [英] Pictures not showing up in site hosted by GitHub
问题描述
我有一个由Github托管的网站,显示图片时遇到问题.我最近尝试上传新图片,但是尽管路径正确,但该页面无法加载图像,并且在尝试查找路径时在源中出现404错误.这是我的网站的仓库: https://github.com/jeanturban/jeanturban.github.io
I have a website hosted by Github and I am having issues with displaying pictures. I recently tried to upload new pictures but despite the path being right, the page fails to load the images and gives a 404 error in the source as it tries to find the path. Here is the repo of my site: https://github.com/jeanturban/jeanturban.github.io
我认为这可能与Picasa有关,因为当我从互联网上下载图片并相应地更新路径时,它可以正常工作.但是,当我尝试使用计算机中的图片,或者尝试从Picasa导出到"img"文件夹时,它就会中断.也许Picasa在导出未上传的图片时会创建一个隐藏文件夹?有人对此有见识吗?还是解决方法?
I think it might have something to do with Picasa as when I download a picture from the internet and update the path accordingly it works fine. But when I try to use pictures from my computer, or if I try to export from Picasa to my "img" folder, then it breaks. Perhaps Picasa is making a hidden folder upon exporting the pictures that is not being uploaded? Anyone have any insight on this? Or a workaround?
推荐答案
由于文件扩展名错误,因此似乎无法加载您的图片.您正在尝试加载" http://jeanturban.com/img/Current/light1.jpg",则应为" http://jeanturban.com/img/Current/light1.JPG "-注意末尾的大写JPG.
It looks like your images are not loading due to the wrong file extension. You are trying to load "http://jeanturban.com/img/Current/light1.jpg" when it should be "http://jeanturban.com/img/Current/light1.JPG" -- notice the capital JPG at the end.
这篇关于图片未显示在GitHub托管的网站上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!