Google's WebP - Lemmings.world

Lemmy

I’m working on a project which generates images in multiples sizes, and also converts to WEBP and AVIF.

The difference in file size is significant. It might not matter to you, but it matters to a lot of people.

Here’s an example (the filename is the width):

Also, using the <picture></picture> element, if the users’ browsers don’t support (or block) AVIF/WEBP, the original format is used. No harm in using them.

(I know this is a meme post, but some people are taking it seriously)

But why webp over jxl

We already have the solution

Webp is supported in browsers. Jxl is not, unfortunately.

Firefox just hasn’t enabled the setting (well they haven’t made the setting enable jxl support yet even though the setting and support has been there for years). This means their forks support it, that’s why I switched to Waterfox

Safari supports it

Chromium removed support for it 2 years ago to push webp but it’s just a reminder to not use Chromium browsers