简体   繁体   English

在 github 页面中显示圆形图像用于配置文件图像(使用降价)

[英]Displaying rounded images in github pages for profile image (using markdown)

I'm trying to display circular/rounded images using markdown in my github page.我试图在我的 github 页面中使用 markdown 显示圆形/圆形图像。 Right now i'm able to display image as shown here, check this please But i need the image to be like this, here现在我可以显示这里显示的图像,请检查这个但我需要图像是这样的,这里

Check out my github page, here still working on it查看我的 github 页面,这里仍在处理中

I did search on the internet and found several articles all of them used HTML and CSS to display round images On w3schools .我在互联网上搜索过,发现几篇文章都使用 HTML 和 CSS在 w3schools上显示圆形图像。 But I want to display the image using markdown.但我想使用 markdown 显示图像。 Is there away to display Circular images using markdown.是否可以使用 markdown 显示圆形图像。 I'm a noobie here, please help me.我是这里的菜鸟,请帮助我。

Another way is to download an image editing software like GIMP and mask out a circle.另一种方法是下载像GIMP这样的图像编辑软件并遮盖一个圆圈。 Then remember to export as a PNG with transparency, but the images.weserv.nl service is a great way to do it assuming the service never goes down然后记得导出为具有透明度的 PNG,但 images.weserv.nl 服务是一个很好的方法,假设服务永远不会关闭

Not sure if this will work for you, but what I have done is use images.weserv.nl service: https://images.weserv.nl/?url=avatars.githubusercontent.com/u/65769327?v=4&h=300&w=300&fit=cover&mask=circle&maxage=7d不确定这是否适合您,但我所做的是使用 images.weserv.nl 服务: https://images.weserv.nl/?url=avatars.githubusercontent.com/u/65769327?v=4&h= 300&w=300&fit=cover&mask=circle&maxage=7d

You can adjust the height and width.您可以调整高度和宽度。 It will generate something like this:它将生成如下内容: 头像

Markdown: Markdown:

![avatar](https://images.weserv.nl/?url=avatars.githubusercontent.com/u/65769327?v=4&h=300&w=300&fit=cover&mask=circle&maxage=7d
)

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

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