aliengine / aliengine.github.io

Public website
https://aliengine.net
Other
5 stars 5 forks source link

image to webp #15

Open majuro16 opened 4 years ago

majuro16 commented 4 years ago

convert images to webp (eg. with this link) https://image.online-convert.com/convert-to-webp

and update html

How to: You use webp like any image:

<img src="img.webp" />

However since it's not always supported (see http://caniuse.com/#feat=webp), you can use this to set a fallback:

<picture><source srcset="img.webp" type="image/webp"><source srcset="img.jpg" type="image/jpeg"><img src="img.jpg"></picture>