According to google AMP docs, the following layouts are supported:
FILL, FIXED, FIXED-HEIGHT, FLEX-ITEM, NODISPLAY, RESPONSIVE
Also look at this example, I donβt think you need quotes around the layout type: https://ampbyexample.com/samples_templates/news_article/
Therefore, it should look something like this:
<figure> <amp-img src="/img/landscape_village_1280x720.jpg" width=1280 height=768 layout=responsive></amp-img> <figcaption>Here is a responsive image.</figcaption> </figure>
Ksenia
source share