Search code examples
amp-html

Does AMP have image width and height requirements for structured data values?


The AMP validator is throwing an error for the publisher logo image width and height values and a warning for the image width value. What are the correct dimensions for these two image types? I can't find them in the docs.

enter image description here


Solution

  • Yes, there are specific dimension requirements which you can find here: https://developers.google.com/search/docs/data-types/articles#article_types

    Your logo needs to be either exactly 60px high or 600px wide. And for the ImageObject, the width needs to be at least 696.

    Lovntola is not getting an error because his width and height are being read as strings.