【问题标题】:Image cut-off when posting an open graph action发布打开图形操作时的图像截断
【发布时间】:2012-08-14 18:30:56
【问题描述】:

我目前正在向图形 API 发布一个操作,其中引用的图像为 120 x 55。这高于 50 x 50 的最小值,低于 3:1 的纵横比限制。我使用的标签是:

<meta property="og:image" content="http://www.pickmoto.com/img/pennants/ravens_fb.png" />
<meta property="og:image:width" content="120" />
<meta property="og:image:height" content="55" />
<meta property="og:image:type" content="image/png" />

图像正在显示,但被截断。

我该如何解决这个问题?我希望图像至少清晰易读。有没有办法强制 facebook 缩小图片,或者以正确的纵横比显示?

【问题讨论】:

    标签: image facebook-graph-api


    【解决方案1】:

    您必须重新调整图像大小。在不拉伸图像的情况下增加高度(Photoshop 处理 Canvas Resize 的方式)。为了简单起见,有些人做image re-sizing on-the-fly

    【讨论】:

    • 是的,我刚刚将图像大小调整为正方形。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-06-23
    • 1970-01-01
    • 2012-05-18
    • 1970-01-01
    相关资源
    最近更新 更多