Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

image to webp #15

Open
majuro16 opened this issue Sep 29, 2020 · 0 comments
Open

image to webp #15

majuro16 opened this issue Sep 29, 2020 · 0 comments

Comments

@majuro16
Copy link
Member

majuro16 commented Sep 29, 2020

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant