Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Try converting the images to WEBP #8

Open
Appnautic opened this issue Feb 12, 2020 · 4 comments
Open

Try converting the images to WEBP #8

Appnautic opened this issue Feb 12, 2020 · 4 comments

Comments

@Appnautic
Copy link
Contributor

No description provided.

@jrgp
Copy link
Member

jrgp commented Apr 18, 2021

This has the unfortunate side effect of not yet being fully supported in Safari: https://caniuse.com/webp

@XvayS
Copy link

XvayS commented Apr 18, 2021

Well, you could always add some fallback:

<picture>
  <source srcset="rambo.webp" type="image/webp">
  <source srcset="rambo.png" type="image/png">
  <img src="rambo.png" alt="Hero image">
</picture>

@jrgp
Copy link
Member

jrgp commented Apr 18, 2021

Yep you'd have to

@ceboola
Copy link

ceboola commented Jul 7, 2021

@jrgp @XvayS @Appnautic you dont need to convert images to webp, its handled by gatsby image plugin, if its supported it becomes webp if not there is a fallback for that case to serve standard format like jpg/png

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

No branches or pull requests

4 participants