大网数据广告活动
网站运营与故障问答

Google SDTT doesn't accept SVG as image in 'Article'

· 52CE 我爱测

Currently I'm creating a review website on which the items that are reviewed have their logo / main image as an SVG object. Unfortunately Google's Structured Data Testing Tool doesn't allow SVG as value for images in the Article …

问题原文

原帖链接 · Justin · CC BY-SA 4.0

Currently I'm creating a review website on which the items that are reviewed have their logo / main image as an SVG object.

Unfortunately Google's Structured Data Testing Tool doesn't allow SVG as value for images in the Article. Strangely enough Google does accept SVG as logo for an organization.

Anyway, is there a way around this problem to either:

  1. Use the SVG as image for the Article type?
  2. Will this error really cause SEO or snippet problems?
  3. Can I define a JPG/PNG version of the SVG file but prevent it from loading? (first of all I don't see any place fit to load that image again and secondly it would increase loadingtime / data-use (and therefor also negatively impact seo without any real use for the user)

Update: the error Google SDTT is giving me:

Blockquote https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/clippath.svg (The value provided for image must be a valid URL.)

Example html:

<section itemscope itemtype="http://schema.org/Article">
   <img src="https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/clippath.svg"
                             alt="Logo" itemprop="image"/>
               <div class="title-wrapper">
                <h1 class="title" itemprop="name headline">
                    <strong>Title</strong>
                    <small>Review 2019</small>
                </h1>
                <span class="last-modified" itemprop="dateModified" content="2019-01-02">
                <strong>Laatst bijgewerkt:</strong> 2 januari 2019</span>
   </section>

Note: I changed and stripped some code unnecessary for this example.

Note2: I added an example SVG for privacy purposes

Note3: I know author, datepublished and publisher are missing in this example, but that's not the point here.

已采纳解答

原帖链接 · karlton · CC BY-SA 4.0

I know it's old ... but the answer has changed. both SVG and WEBP formats are now acceptable.

"Google Images supports images in the following formats: BMP, GIF, JPEG, PNG, WebP, and SVG"

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2019-01-02)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。