Answer the question
In order to leave comments, you need to log in
Tool to auto-insert in html WebP version of an image?
Do you know a tool to automatically insert webp to html?
For example, a package for Galpa or a postHTML plugin.
Let's say we have this HTML input:
<picture>
<source media="(min-width: 768px)" srcset="img-1--tablet.jpg 1x, [email protected] 2x">
<img src="img-1--mobile.jpg" srcset="[email protected] 2x">
</picture>
<source type="image/webp" media="(min-width: 768px)" srcset="img-1--tablet.webp 1x, [email protected] 2x">
<source type="image/webp" srcset="img-1--mobile.webp 1x, [email protected] 2x">
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question