gpt4 book ai didi

Facebook - 指定图像尺寸?

转载 作者:行者123 更新时间:2023-11-30 05:22:48 24 4
gpt4 key购买 nike

在 Facebook 上,我注意到图像的大小从 100x100 到 300x300 以上不等(在某些情况下更大)。我意识到其中一些可以使用 Open Graph 来完成,但是当我为我网站上的照片指定图像大小时,它会拍摄照片并将尺寸缩小到更小的尺寸。这在某种程度上是可以的,因为图像大小最初是 620x541,但它把它缩小到非常小的尺寸(大约 100x100),这使得图像上的文本很难阅读,在某些情况下,图像会变质,看起来很糟糕照片。

为什么有些照片是 300x300(大致),但 FB 将我的图像缩小到更小的图像?我已经使用 OGP 指定我想要拉取的图像,但有没有办法告诉 FB 不要将图像缩小到一定尺寸以下?这是我用于图像的 OGP:

<meta property="og:title" content="My Title" />
<meta property="og:type" content="article" />
<meta property="og:url" content="URL Path" />
<meta property="og:image" content="Image File Path" />
<meta property="og:image:type" content="image/jpeg" />
<meta property="og:image:width" content="620" />
<meta property="og:image:height" content="541" />

最佳答案

这就是为什么,答案来自 NickWebmasters Stack Exchange

The reason some of the photos on your wall appear larger than the linked photo is that they have been reposted from one of your friend's photos that was initially uploaded to Facebook. i.e. They are not shared links to external websites.

Facebook shows your friend's photos with a large thumbnail, but external sites with a small thumbnail. There's no change you can make to your site to get it to use larger thumbnails. It's just how Facebook works at present.

If you wanted the images to appear bigger in other people's streams, you could upload them as images to your Facebook page (or to an official Facebook page for your site), and get people to like the photos you've uploaded to Facebook directly instead of liking the link to the page containing the photo on your site.

关于Facebook - 指定图像尺寸?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8041780/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com