←back to thread

94 points ksec | 3 comments | | HN request time: 0s | source
Show context
ekunazanu ◴[] No.44570052[source]
JPEG XL had so much going for it. Kinda sad it was killed off just like that.
replies(7): >>44570077 #>>44570161 #>>44570521 #>>44570580 #>>44570956 #>>44572410 #>>44575108 #
arp242 ◴[] No.44570521[source]
It wasn't "killed", it was always disabled by default in Chrome, and removed for really quite reasonable reasons: literally every other image decoder has had serious vulnerabilities. Enabling it by default would expose a gigantic attack surface that almost certainly will be exploited sooner or later.

This is also why Firefox doesn't support it by default (IIRC it doesn't even link against libjpegxl by default in release builds – only nightly ones).

There is nothing preventing the Chrome or Firefox people from revisiting all of this in the future.

It seems to me the Rust implementation of JPEG XL is by far the best path forward for broad JPEG XL support in Firefox, Chrome, and other browsers. While Rust is of course not a complete guarantee there will never be any security issues, it does eliminate virtually all of the major exploits that have targeted image decoders in the past. Both Firefox and Chrome have expressed interest in this.

replies(1): >>44570574 #
badgersnake ◴[] No.44570574[source]
And because they wanted to push WebP
replies(4): >>44570633 #>>44571463 #>>44572495 #>>44572804 #
kevincox ◴[] No.44570633[source]
...which overall is a pretty mediocre image format.
replies(2): >>44571343 #>>44572659 #
1. Dwedit ◴[] No.44572659[source]
WEBP is two image formats bolted together.

First, there's Lossy WEBP, based on VP8 video compression. It is better than JPEG, but mediocre by today's standards. Lossy AVIF and Lossy JXL greatly outclass lossy WEBP.

Second, there's Lossless WEBP, which is not in any way based on VP8. Lossless WEBP is a stellar image format that not only compresses very well, but also decompresses very quickly. Its biggest competition is Lossless JXL, which usually compresses to a smaller file, but decoding that image is slow enough to be annoying. Sometimes lossless WEBP produces a smaller file than lossless JXL.

replies(2): >>44573112 #>>44581719 #
2. kevincox ◴[] No.44573112[source]
Yes, you are right that the lossless format is much more notable but also much less common than the lossy one. It is quite an improvement over PNG which is the only real competitor on the web.
3. JyrkiAlakuijala ◴[] No.44581719[source]
Thank you. I agree with the sentiment that WebP lossless has stand the test of time better than WebP lossy. In some comparisons even Jpegli is more attractive from compression density point view than WebP lossy.

Disclaimer: I am the designer of WebP lossless and Jpegli.