Answer the question
In order to leave comments, you need to log in
How to pull webp images?
Hello. I'm using a ready-made gallp assembly with converting images to webp, but they are not displayed in the browser. They are actually in the files. Tell me, what could be the reason?
.
Answer the question
In order to leave comments, you need to log in
Webp files are inserted like normal pictures, but some browsers do not support this format, so you should use the special picture tag:
<picture>
<source srcset="path/to/image.webp" type="image/webp">
<img src="path/to/image.jpg" alt="Image alt">
</picture>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question