Blog icon indicating copy to clipboard operation
Blog copied to clipboard

文章图片加载失败的问题已全部解决

Open mqyqingfeng opened this issue 2 years ago • 1 comments

问题及原因

不少读者反馈文章图片加载失败的问题,这是因为图片使用的是 Github 的图床,过去发布 issues 的时候会将图片也上传到 Blog 仓库,然后使用仓库中图片地址。格式类似于 https://github.com/mqyqingfeng/Blog/raw/master/Images/prototype1.png

解决方法

目前我的解决方式是将其替换为 jsdelivr 地址:

比如原本的

https://github.com/mqyqingfeng/Blog/raw/master/Images/prototype1.png

替换为

https://cdn.jsdelivr.net/gh/mqyqingfeng/Blog/Images/prototype1.png

不知道使用这种方式是否有什么问题,如果有问题,欢迎提给我,不胜感激!

PS:如果还发现有文章的图片加载失败,请务必提给我~

mqyqingfeng avatar Nov 15 '21 02:11 mqyqingfeng

图片不能正确显示 typescript 这个系列都这样

TLovers avatar Jan 15 '23 10:01 TLovers