Correct use of Schema.org "ImageObject"

12,527

The third one removing the first occurence of itemprop='image' is the right one.

<div itemscope itemtype='http://schema.org/ImageObject'>
  <a href='big_1280x720.jpg' itemprop='contentUrl'>
    <img src='small_90x60.jpg' itemprop='thumbnailUrl'>
  </a>
</div>
Share:
12,527
Enrique
Author by

Enrique

Updated on June 13, 2022

Comments

  • Enrique
    Enrique almost 2 years

    I have doubts about the correct use of schema ImageObject.

    I have a small image and a link to view it in larger size, but I don’t know exactly which of these three forms is the right one.

    <span itemprop='image' itemscope itemtype='http://schema.org/ImageObject'>
    <a href='big_1280x720.jpg' itemprop='contentUrl'><img src='small_90x60.jpg' itemprop='image'></a>
    </span>
    
    <span itemprop='image' itemscope itemtype='http://schema.org/ImageObject'>
    <a href='big_1280x720.jpg' itemprop='image'><img src='small_90x60.jpg' itemprop='thumbnailUrl'></a>
    </span>
    
    <span itemprop='image' itemscope itemtype='http://schema.org/ImageObject'>
    <a href='big_1280x720.jpg' itemprop='contentUrl'><img src='small_90x60.jpg' itemprop='thumbnailUrl'></a>
    </span>
    
  • Nash Bridges
    Nash Bridges about 9 years
    If an image is a part of a bigger scope (e. g. a movie), then removing itemprop="image" will extract it from the current scope to the root one. Check developers.google.com/structured-data/testing-tool
  • vhs
    vhs over 5 years
    Also compare against the Yandex structured data tool for balance.
  • vhs
    vhs over 5 years
    Examples do not cover use of thumbnailUrl as asked in the question.