LinkedIn分享显示大图像的要求 [英] LinkedIn share requirements to display BIG image

查看:42
本文介绍了LinkedIn分享显示大图像的要求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题是:为什么图像很小,以及如何将其放大?

我实现了linkedIn share.为此,我添加了元标记: og:title og:image og:description og:url .

I have implemented linkedIn share. For that I have added meta tags: og:title og:image og:description og:url.

一切正常,但是我的形象很小.

Everything is working but my image is small.

我们已经询问了linkedIn,答案是检查图像的宽高比,但这很好.图像长宽比并不是造成问题的原因.

We have asked linkedIn about that and answer was to check image aspect ratio but it is fine. And image aspect ratio is not what cause the problem.

我们已经测试了不同的图像(尺寸,尺寸,简单图像,彩色图像等).没有帮助.

We have tested different images (sizes, dimension, simple images, colorful images, etc). Nothing helped.

可能是其他来源问题.尝试确保您的网站和图片的来源相同.

Probably it is different origin issue. Try to make sure that your site and your images are served from same origin.

推荐答案

它必须运行良好,而且您可能已经照顾了所有必需的东西.

It has to work well, also you might have taken care of all minute required things.

不过,我仍然想为您提供一些见解,我认为这些见解对于使它按照LinkedIn的指南以及我的使用经验是必不可少的.

Still, I would like to help you with some insights which I think is really needed to make it work as per the LinkedIn's guideline and my experience with using it.

下面是必须存在的og:标记及其正确格式:

  • < meta属性='og:title'content ='文章标题"/>
  • <元属性='og:image'content ='//media.example.com/1234567.jpg"/>
  • < meta属性='og:description'content ='将在预览中显示的描述"/>
  • < meta属性='og:url'content ='//www.example.com/文章"/>
  • 的URL
  • <meta property='og:title' content='Title of the article"/>
  • <meta property='og:image' content='//media.example.com/ 1234567.jpg"/>
  • <meta property='og:description' content='Description that will show in the preview"/>
  • <meta property='og:url' content='//www.example.com/URL of the article" />

以下是特定于LinkedIn共享模块的图像要求:

Here are the image requirements specific to the LinkedIn sharing module:

  • 最大文件大小:5 MB
  • 最小图像尺寸:1200(w)x 627(h)像素
  • 推荐比例:1.91:1

注意:如果该图片符合要求,但仍未出现在LinkedIn上的更新中,则您的网站可能阻止我们提取该图片,或者该图片可能位于受保护的目录中或网站.

Note: If the image meets the requirements, but it still does not appear in updates on LinkedIn, your website may be blocking us from pulling the image or the image may be located on a protected directory or website.

您可能已经很好地考虑了宽高比,但是最大收获是这里的最小尺寸允许的最大文件大小他们提到的图片.

You might have taken good care of aspect ratio, but the catch here is the minimum dimension and the maximum allowed file size of an image that they mentioned.

我会检查我的最小尺寸是否为1200(w)x 627(h)像素.

I would check if I am having a minimum dimension as 1200 (w) x 627 (h) pixels.

此外,还要注意文件大小,即文件大小不能超过5 MB.

Also, would take care of the file size, that is it must not be larger than 5 MB.

除了这些东西,我还会寻找是否有META的- og:image:width og:image:height .

Along with these things, I would also look for if I am having META's - og:image:width and og:image:height.

示例:

Example:

<meta property="og:image:width" content="1920" />
<meta property="og:image:height" content="780" />

更新:

如果所有内容均如上所述设置,则可能要尝试清除浏览器的缓存,也可以在隐身(私有)窗口中尝试使用它.

Update:

If all of the things are set as mentioned above, you may wanna try clearing the browser's cache or try same it in an incognito(private) window.

此外,在检查器工具中进行测试时或在发布URL时获得预览时,请验证您是否正确编码/解码了URL.

Also, verify if you have URL encoded/decoded correctly while testing in an inspector tool or getting a preview when posting the URL.

希望这对您有所帮助.干杯!

I hope this helps you. Cheers!

这篇关于LinkedIn分享显示大图像的要求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆