Within the http://schema.org/Product scope, I want to define the markup for an image. Usually it looks as follows:
<img itemprop="image" src="/path-to-image.suffix" alt="image-description" />
However, modern responsive pages use the <picture>
tag. I tried...
<picture itemprop="image">
<source media="(max-width: ${viewport-size-1})" srcset="/path-to-image-size-1.suffix">
<source media="(min-width: ${viewport-size-2})" srcset="/path-to-image-size-2.suffix">
<img src="/fallback-path-to-image.suffix" alt="image-description">
</picture>
But it appears not to be accepted by Google's structured data testing tool. Adding it to the <img>
tag within the <picture>
doesn't seem right to me, as it doesn't highlight the whole context and hence neglects the fact that the image exists in various resolutions...
What is the right Microdata image markup for picture
tags?