简体   繁体   English

Github Markdown 中的图片缩略图

[英]Thumbnails of Images in Github Markdown

Is it possible to render a scaled version of an image (aka. Thumbnail) in my repository in, eg, the README.md?是否可以在我的存储库中呈现图像的缩放版本(又名缩略图),例如 README.md?

I have many (static) high-resolution images which I want to show in the README.md, however, it currently takes very long to fully load the README.md, which I find annoying.我有许多(静态)高分辨率图像,我想在 README.md 中显示,但是,目前完全加载 README.md 需要很长时间,我觉得这很烦人。

I found a way to scale the image using the HTML-syntax, however, this apparently only changes the appearance of the image, the resolution is still the same, hence, loading the website is not sped up either.我找到了一种使用 HTML 语法缩放图像的方法,但是,这显然只会改变图像的外观,分辨率仍然相同,因此加载网站也没有加快。

I want the images to span the whole line width, but with lower resolution.我希望图像跨越整个线宽,但分辨率较低。

您可以添加较小版本的图像,并带有指向完整分辨率图像的链接。

[![sample screenshot](https://i.imgur.com/Tkks00R.png)](https://i.imgur.com/Ob4qAwu.png)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM