posthtml / posthtml-webp

Add webp supporting in your html
MIT License
6 stars 7 forks source link

[FEATURE] Google AMP amp-img support #3

Closed kevincolten closed 5 years ago

kevincolten commented 5 years ago

Adds Google AMP amp-img support

Before:

<amp-img alt="photo" width="550" height="368" layout="responsive" src="photo.png"></amp-img>

After:

<amp-img alt="photo" width="550" height="368" layout="responsive" src="photo.png.webp">
    <amp-img alt="photo" width="550" height="368" layout="responsive" src="photo.png" fallback=""></amp-img>
</amp-img>
Scrum commented 5 years ago

@kevincolten Hi, thank you very much. I will try to publish as soon as possible.

Scrum commented 5 years ago

@kevincolten publish 1.2.0