You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在JSON-LD中为Organization/Product添加多比例图片?

如何在JSON-LD的Organization和Product类型中添加多比例图片?

根据schema.org规范,Organization和Product类型的image属性都支持传入ImageObject对象数组,用来存放同一张图片的不同宽高比版本。你只需要为每个比例的图片单独创建一个ImageObject实例,准确填入对应的宽、高数值和图片URL即可。

1. Organization类型的完整示例

这里补充上你需要的4:3比例图片(以宽1200px、高900px为例),完整JSON-LD代码如下:

{
    "@type": "Organization",
    "image": [
        {
            "@type": "ImageObject",
            "width": 1200,
            "height": 675,
            "url": "https://domain/img_16_9.png"
        },
        {
            "@type": "ImageObject",
            "width": 1200,
            "height": 1200,
            "url": "https://domain/img_1_1.png"
        },
        {
            "@type": "ImageObject",
            "width": 1200,
            "height": 900,
            "url": "https://domain/img_4_3.png"
        }
    ]
}

2. Product类型的完整示例

Product类型的写法和Organization完全一致,仅需将@type改为Product即可:

{
    "@type": "Product",
    "name": "示例产品",
    "description": "这是一个示例产品的描述",
    "image": [
        {
            "@type": "ImageObject",
            "width": 1200,
            "height": 675,
            "url": "https://domain/product_img_16_9.png"
        },
        {
            "@type": "ImageObject",
            "width": 1200,
            "height": 1200,
            "url": "https://domain/product_img_1_1.png"
        },
        {
            "@type": "ImageObject",
            "width": 1200,
            "height": 900,
            "url": "https://domain/product_img_4_3.png"
        }
    ]
}

注意事项

  • 每个ImageObject必须包含@type、width、height、url这几个核心字段,确保搜索引擎能正确识别图片的比例和尺寸。
  • 宽高数值要和图片实际尺寸对应,比例计算准确(比如16:9的宽高比=宽/高=16/9)。

内容的提问来源于stack exchange,提问作者clarkk

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.22 09:15:16