• Resolved Fabio Devin

    (@fdevin)


    All of a sudden, I started having AMP errors in Google console. When I check them closely, I see teh following:

    – All images are small, like 10x10px
    – Validator throws an error as if they’re SVG (they’re jpg or png)

    for example, in this page https://dorve.com/blog/covid-19-helping-people-fight-the-pandemic/amp/ I get this, you can clearly see it’s considering the image as a SVG:

    The attribute 'src' in tag 'IMG-I-AMPHTML-INTRINSIC-SIZER' is set to the invalid value 'data:image/svg+xml;charset=utf-8,<svg height="327" width="640" xmlns="https://www.w3.org/2000/svg" version="1.1">'.

    The full context with the real image is:

    <img src=https://dorve.com/wp-content/uploads/2020/04/imagen-1-1024x507.png alt="Covid-19 Data Viz: Logarithmic exponential evolution of Covid19 in different countries" class=wp-image-1833 srcset="https://dorve.com/wp-content/uploads/2020/04/imagen-1-1024x507.png 1024w, https://dorve.com/wp-content/uploads/2020/04/imagen-1-453x224.png 453w, https://dorve.com/wp-content/uploads/2020/04/imagen-1-768x380.png 768w, https://dorve.com/wp-content/uploads/2020/04/imagen-1-1536x760.png 1536w, https://dorve.com/wp-content/uploads/2020/04/imagen-1-2048x1013.png 2048w, https://dorve.com/wp-content/uploads/2020/04/imagen-1-905x448.png 905w, https://dorve.com/wp-content/uploads/2020/04/imagen-1-889x440.png 889w" sizes="(max-width: 1024px) 100vw, 1024px" width=1024 height=507>

    EDIT: I saw this post and the suggestion to add the Github fix, but it didn’t work (I have added the beta AMP plugin)

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘error with images’ is closed to new replies.