amp-library icon indicating copy to clipboard operation
amp-library copied to clipboard

ACTION TAKEN: img tag could NOT be converted to the amp-img tag as the image is not accessible

Open karltud123 opened this issue 6 years ago • 2 comments

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.

karltud123 avatar Mar 20 '18 10:03 karltud123

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'/>

Ricael avatar Apr 04 '18 16:04 Ricael

Hi.

Im using absolute path. I understand now the problem that the image needs to have width and height to work

Thanks.

karltud123 avatar May 11 '18 16:05 karltud123