(no title)
jakkos | 1 month ago
From a quick look at various "benchmarks" JpegXL seems just be flat out better than WebP in both compression speed and size, why has there been such reluctance from Chromium to adopt it? Are there WebP benefits I'm missing?
My only experience with WebP has been downloading what is nominally a `.png` file but then being told "WebP is not supported" by some software when I try to open it.
jmillikin|1 month ago
Also from a security perspective the reference implementation of JPEG-XL isn't great. It's over a hundred kLoC of C++, and given the public support for memory safety by both Google and Mozilla it would be extremely embarrassing if a security vulnerability in libjxl lead to a zero-click zero-day in either Chrome or Firefox.
The timing is probably a sign that Chrome considers the Rust implementation of JPEG-XL to be mature enough (or at least heading in that direction) to start kicking the tires.
latexr|1 month ago
I agree with the second part (useless hero images at the top of every post demonstrate it), but not necessarily the first. JPEG is supported pretty much everywhere images are, and it’s the de facto default format for pictures. Most people won’t even know what format they’re using, let alone that they could compress it or use another one. In the words of Hank Hill:
> Do I look like I know what a JPEG is? I just want a picture of a god dang hot dog.
https://www.youtube.com/watch?v=EvKTOHVGNbg
jacobp100|1 month ago
londons_explore|1 month ago
I can completely see why the default answer to "should we add x" should be no unless there is a really good reason.
coppsilgold|1 month ago
https://www.youtube.com/watch?v=UphN1_7nP8U
out_of_protocol|1 month ago
- jxl is better at high bpp, best in lossless mode
speps|1 month ago
a-french-anon|1 month ago
The issue was the use of C++ instead of Rust or WUFFS (that Chromium uses for a lot of formats).
spider-mario|1 month ago
rdsubhas|1 month ago
The decode speed benchmarks are misleading. WebP has been hardware accelerated since 2013 in Android and 2020 in Apple devices. Due to existing hardware capabilities, real users will _always_ experience better performance and battery life with webp.
JXL is more about future-proofing. Bit depth, Wide gamut HDR, Progressive decoding, Animation, Transparency, etc.
JXL does flat out beats AVIF (the image codec, not videos) today. AVIF also pretty much doesn't have hardware decoding in modern phones yet. It makes sense to invest NOW in JXL than on AVIF.
For what people use today - unfortunately there is no significant case to beat WebP with the existing momentum. The size vs perceptive quality tradeoffs are not significantly different. For users, things will get worse (worser decode speeds & battery life due to lack of hardware decode) before it gets better. That can take many years – because hey, more features in JXL also means translating that to hardware die space will take more time. Just the software side of things is only now picking up.
But for what we all need – it's really necessary to start the JXL journey now.
Dylan16807|1 month ago
Extra data transfer costs performance and battery life too.
chocolatkey|1 month ago
3OCSzk|1 month ago
so webp > jpegxl > png
archerx|1 month ago
adzm|1 month ago
breppp|1 month ago
MrDOS|1 month ago
The funny thing is all the places where Google's own ecosystem has ignored WebP. E.g., the golang stdlib has a WebP decoder, but all of the encoders you'll find are CGo bindings to libwebp.