如何调整网站图像预览的大小
嗨,我正在使用以下代码来设置图像预览
< html xmlns =“ http://www.w3.org/1999/xhtml” xmlns:fb =“ http://ogp.me/ns /fb#“>
< meta属性=“ og:image” content =“ https://i.imgur.com/vjuu72s.png” width =“ 1200”高=“ 600”/>
它设置了发送的链接的预览确实很小(请参见下图)
但是我想要它像下面的图像
我如何实现这一目标?我已经尝试执行以下
< meta属性=“ og:image” content =“ https://i.imgur.com/vjuu72s.png” width =“ 1200” height =“ 600”/>
实际图像大小为'1200x600'
Hi I'm using the below code to setup a image preview
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://ogp.me/ns/fb#">
<meta property="og:image" content="https://i.imgur.com/VjUU72S.png" width="1200" height="600"/>
It sets up the preview for the link sent but it is really small (see image below)
However I want it to be alot bigger like the below image
How can i achieve this? ive already tried to do the below
<meta property="og:image" content="https://i.imgur.com/VjUU72S.png" width="1200" height="600"/>
The actual image size is '1200x600'
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Discord 依赖 twitter 卡 的元标记来渲染图像尺寸。有关 twitter 的更多信息网站
所以,只需将其添加到您的头脑中:
Discord relies on the meta tag of twitter cards to render image sizes. More info on twitter website
So, just add this in your head :
我已经找到了解决方案并实现了我的目标。
I have come to a solution for this and achieved my goal.