我想在 README.md 上显示一个大 gif。首先,我把它上传到imgur。然后,我将 url 添加到 README.md# <img alt="YAP" src="http://i.imgur.com/dNYswmI.gif">
。但无法加载,编译为:
<a href="https://camo.githubusercontent.com/b4f1167e599ce7936bb83aad5d007ca8f04345ac/687474703a2f2f692e696d6775722e636f6d2f644e5973776d492e676966" target="_blank">
<img alt="YAP" src="https://camo.githubusercontent.com/b4f1167e599ce7936bb83aad5d007ca8f04345ac/687474703a2f2f692e696d6775722e636f6d2f644e5973776d492e676966" data-canonical-src="http://i.imgur.com/dNYswmI.gif" style="max-width:100%;"></a>
这是我的README https://github.com/Zzzen/YAP/blob/master/README.md.
###Description
A open source player.
###Screenshot
# <img alt="YAP" src="http://i.imgur.com/dNYswmI.gif">
您分享的 gif 大小为 19MB。
GitHub 路由所有内容https://camo.githubusercontent.com/ https://camo.githubusercontent.com/即使现在对于外部源也是如此。共享大于大小限制 (10MB) 的文件将会出现“超出内容长度”错误。
我尝试在 Google Drive、Dropbox、Droplr 上共享它,我自己的服务器都遇到了这个问题,除非文件大小低于5MB。你的语法是 html 还是 markdown 也没关系。
<img src="https://static01.bbi.io/2Wt9Tk.gif"/>
!(image)[https://static01.bbi.io/2Wt9Tk.gif]
您的解决方案是调整 gif 的大小。您可以使用这样的服务来做到这一点:https://ezgif.com/resize https://ezgif.com/resize .
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)