With structured data and img width and height, Google says "number required". Does it mean that Google only accepts the numbers in pixels?

  <div itemprop="image" itemscope itemtype="https://schema.org/ImageObject">
    <img src="https://google.com/thumbnail1.jpg"/>
    <meta itemprop="url" content="https://google.com/thumbnail1.jpg">
    <meta itemprop="width" content="800">
    <meta itemprop="height" content="800">

But nowadays almost all img need to be responsive. So the img CSS is:

img {
  width: 100%;
  height: auto;

and the structured data:

<meta itemprop="width" content="100%">
<meta itemprop="height" content="auto">

In structured data, the values of the width and height, how should it be? Can I use 100% and auto?

1 Answer 1


Schema.org’s height/width properties are not for stating in which dimension the image should be displayed, but which dimension the image file has.

Knowing the image’s height/width, consumers (like Google Search) can then decide if to do something (and what to do) with the image. They will use their own CSS if they display the image.

In the case of Google Search, they want to see pixel values, e.g., for their Article rich result:

The height of the image, in pixels.

The width of the image, in pixels.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.