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

JPEGXL 0.01%, & maybe not AVIF #4

Open
tomByrer opened this issue Aug 19, 2022 · 3 comments
Open

JPEGXL 0.01%, & maybe not AVIF #4

tomByrer opened this issue Aug 19, 2022 · 3 comments

Comments

@tomByrer
Copy link

tomByrer commented Aug 19, 2022

I do not think JPEGXL should be recommended at all, & likely not for 6mo+, if that. Has needed a flag for a year. Is promising, but we're not there yet.
https://caniuse.com/jpegxl
Only browser I know with it turned on is Thornium, & it has no market share.
https://github.com/Alex313031/Thorium#features--differences-between-chromium-and-thorium--

Also, I'm on the fence with AVIF. There is no hardware accelerations AFAIK; so images could actually 'time-to-glass' slower due to decoding time.
There was some talk about tapping into Apple Silicons' AV1 hardware decoding, but I'm not aware if that got implemented & if other chips & OSes can do that.
Secondly I found some color shifting with AVIF; likely because it seems to convert back & forth color spaces.

@nucliweb
Copy link
Owner

Hi @tomByrer, thank you for you feedback.

I'm agree about the JPEG XL support, I'm a early adopter 😅

About the AVIF image format, your examples are of screenshots, AVIF is not the best format to images with text, I'm going to take a closer look at that issue, thanks for sharing.

Btw, the idea of the repo is to know to use the image tag to improve the UX and the Web Performance, I'm not advising that one format is better than another, that depends a lot on the images.

@tomByrer
Copy link
Author

AVIF is not the best format to images with text,

Oh, I need to test that; thanks!
I think AVIF is good for pictures (landscapes, portraits). Might be trouble if keeping specific colors exact (eg branding colors, match image colors with CSS colors).

Just keep in mind how many programmers just copy/paste ;)

@antermin
Copy link

antermin commented Jun 7, 2023

https://twitter.com/jensimmons/status/1666058844122894336

Yes, Safari 17 supports JPEG XL. On macOS Sonoma, macOS Ventura and macOS Monterey, as well as iOS, iPadOS, watchOS, and soon, visionOS.

See also: https://caniuse.com/jpegxl

According to https://gs.statcounter.com/ , Safari has a market share of 20%.

It's true that JPEG XL previously has little adoption, but now that Apple has become an adopter, perhaps we should recommend it?

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

3 participants