amp-library
amp-library copied to clipboard
ACTION TAKEN: img tag could NOT be converted to the amp-img tag as the image is not accessible
Hi,
Anyone know any workaround on how to fix this issue?
When the img HTML does not contain any width and height it says the error
ACTION TAKEN: img tag could NOT be converted to the amp-img tag as the image is not accessible
But if it has its okay, any workaround or is there a proper way I need to do to fix it?
Thank you in advance.
Hi,
Are you using relative image path or absolute ? I had the same error when using relative image ULRs.
Not writing any width or height inside the tag, works just fine.
This does not work for me:
<img src='//path/to/image.jpg'/>
This works!.
<img src='http://my.domain.com/path/to/image.jpg'/>
Hi.
Im using absolute path. I understand now the problem that the image needs to have width and height to work
Thanks.