Github 图片的链接已下载而不是显示

Github image's links downloaded instead of showing

我在 Github 存储库中有一组 .gif 图片,它们在浏览器中看起来都很完美,除了两个:它们下载了。

这些是正确的:

https://raw.githubusercontent.com/akidaniel/almacen/gh-pages/paillettes_html/images/3SKULLS.gif https://raw.githubusercontent.com/akidaniel/almacen/gh-pages/paillettes_html/images/HEART.gif

这些不是:

https://raw.githubusercontent.com/akidaniel/almacen/gh-pages/paillettes_html/images/POCKET.gif https://raw.githubusercontent.com/akidaniel/almacen/gh-pages/paillettes_html/images/DISCO.gif

除了 gif 名称外,我看不出链接有任何区别

pypa/warehouse issue 5596

The issue is that the Content-Type for this image is application/octet-stream.
Instead, it should be image/gif.

I've submitted a ticket to GitHub for why the Content-Type of my gif image is mistaken to application/octet-stream.

GitHub replied:

It seems we serve gif files under 5MB via raw.githubusercontent.
Any files over this size are served as downloadable octet-stream files.

看来除了缩小gif图我也无能为力了

检查在您的情况下,这是否不是 akidaniel/almacen/tree/gh-pages/paillettes_html/images 中的尺寸问题。