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

Explore alternative formats for images #59

Open
jackjt8 opened this issue Apr 27, 2022 · 3 comments
Open

Explore alternative formats for images #59

jackjt8 opened this issue Apr 27, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@jackjt8
Copy link
Member

jackjt8 commented Apr 27, 2022

WebP offers file sizes that are around 30% smaller than JPEG without a quality gap.

Need to explore if this holds up and migrate everything over.

WebP Browser Support

@jackjt8 jackjt8 added the enhancement New feature or request label Jun 10, 2022
@leMaik
Copy link
Member

leMaik commented Mar 13, 2023

We could as well use AVIF, which has better compression but worse browser support: https://caniuse.com/?search=avif

Is there a way to let the browser select the best image format?

@jackjt8 jackjt8 changed the title Explore WebP switch for images Explore alternative formats for images Mar 13, 2023
@jackjt8
Copy link
Member Author

jackjt8 commented Mar 13, 2023

We could as well use AVIF, which has better compression but worse browser support: https://caniuse.com/?search=avif

Is there a way to let the browser select the best image format?

If we use picture...

 <picture>
  <source srcset="photo.avif" type="image/avif" />
  <source srcset="photo.webp" type="image/webp" />
  <img src="photo.jpg" alt="photo" />
</picture>

@Peregrine05
Copy link
Member

WEBP is already supported on every major browser, and making more than one image format available might simply result in unnecessary work and storage space being used.

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

No branches or pull requests

3 participants