谷歌“复活” JPEG XL?
Google unkills JPEG XL?

原始链接: https://tonisagrista.com/blog/2025/google-unkills-jpegxl/

## JPEG XL:重生的格式 多年来,JPEG XL 是一种技术上更优越的图像格式,但由于缺乏浏览器支持而受阻。虽然 Safari 用户(17%)和使用小众浏览器的人可以访问它,但大多数用户使用的是 AVIF——一种由 Google 推出的格式,尽管社区对此存在疑虑。 最初,Google 的 Chromium 团队出人意料地决定在 2022 年*移除* JPEG XL 支持,理由是生态系统兴趣不足。这一决定受到了 Meta、Adobe 和 PDF 协会等行业参与者的强烈反对,他们强调了该格式的优势——包括无损 JPEG 重新压缩、HDR 支持和巨大的图像尺寸能力。 现在,Chromium 已经显著地恢复了对 JPEG XL 的支持。这一变化是由不断增长的社区压力以及 Firefox 探索基于 Rust 的解码器所推动的,预计这将推动 JPEG XL 成为一种主要的图像标准。其独特的特性,如提供约 30% 文件大小减少的无损重新压缩,以及渐进式解码,使其成为 Web 及其他领域的理想选择——甚至 PDF 协会计划将其用于 HDR 内容。这种期待已久的的支持预示着多功能且强大的 JPEG XL 格式拥有光明的未来。

## JPEG XL 在谷歌的复兴 最近在 Hacker News 上的讨论显示,谷歌似乎改变了放弃支持 JPEG XL 图像格式的决定。 此前已被弃用,JPEG XL 现在正在被“复活”,这在技术社区引发了争论。 这一举动是在受到批评之后,包括来自自由软件基金会的批评,关于谷歌对网络标准的控制。 一些人认为,谷歌应该在法律上被要求支持由独立机构确定的标准,而不是按照自己的意愿行事。 还有人指出,Mozilla 对 JPEG XL 和 XSLT 持有类似立场,理由是维护负担和收益有限。 虽然实施挑战依然存在——一张全分辨率图像可能需要拍字节的存储空间——但一些人预计 JPEG XL 将首先出现在 PDF 阅读器中,然后再在 EPUB 等电子书系统中广泛采用,一些用户觉得 EPUB 在视觉上有所欠缺。 讨论还涉及 WebP 等其他格式的未来,声称它可能会被 JPEG XL 取代。
相关文章

原文

I’ve written about JPEG XL in the past. First, I noted Google’s move to kill the format in Chromium in favor of the homegrown and inferior AVIF. Then, I had a deeper look at the format, and visually compared JPEG XL with AVIF on a handful of images.

The latter post started with a quick support test:

“If you are browsing this page around 2023, chances are that your browser supports AVIF but does not support JPEG XL.”

Well, here we are at the end of 2025, and this very sentence still holds true. Unless you are one of the 17% of users using Safari, or are adventurous enough to use a niche browser like Thorium or LibreWolf, chances are you see the AVIF banner in green and the JPEG XL image in black/red.

The good news is, this will change soon. In a dramatic turn of events, the Chromium team has reversed its Obsolete tag, and has decided to support the format in Blink (the engine behind Chrome/Chromium/Edge). Given Chrome’s position in the browser market share, I predict the format will become a de factor standard for images in the near future.

Let’s recap

I’ve been following JPEG XL since its experimental support in Blink. What started as a promising feature was quickly axed by the team in a bizarre and ridiculous manner. First, they asked the community for feedback on the format. Then, the community responded very positively. And I don’t only mean a couple of guys in their basement. Meta, Intel, Cloudinary, Adobe, ffmpeg, libvips, Krita, and many more. After that came the infamous comment:

[email protected][email protected]

#85 Oct 31, 2022 12:34AM

Thank you everyone for your comments and feedback regarding JPEG XL. We will be removing the JPEG XL code and flag from Chromium for the following reasons:

  • Experimental flags and code should not remain indefinitely
  • There is not enough interest from the entire ecosystem to continue experimenting with JPEG XL
  • The new image format does not bring sufficient incremental benefits over existing formats to warrant enabling it by default
  • By removing the flag and the code in M110, it reduces the maintenance burden and allows us to focus on improving existing formats in Chrome

Yes, right, “not enough interest from the entire ecosystem”. Sure.

Anyway, following this comment, a steady stream of messages pointed out how wrong that was, from all the organizations mentioned above and many more. People were noticing in blog posts, videos, and social media interactions.

Strangely, the following few years have been pretty calm for JPEG XL. However, a few notable events did take place. First, the Firefox team showed interest in a JPEG XL Rust decoder, after describing their stance on the matter as “neutral”. They were concerned about the increased attack surface resulting from including the current 100K+ lines C++ libjxl reference decoder, even though most of those lines are testing code. In any case, they kind of requested a “memory-safe” decoder. This seems to have kick-started the Rust implementation, jxl-rs, from Google Research.

To top it off, a couple of weeks ago, the PDF Association announced their intent to adopt JPEG XL as a preferred image format in their PDF specification. The CTO of the PDF Association, Peter Wyatt, expressed their desire to include JPEG XL as the preferred format for HDR content in PDF files.

Chromium’s new stance

All of this pressure exerted steadily over time made the Chromium team reconsider the format. They tried to kill it in favor of AVIF, but that hasn’t worked out. Rick Byers, on behalf of Chromium, made a comment in the Blink developers Google group about the team welcoming a performant and memory-safe JPEG XL decoder in Chromium. He stated that the change of stance was in light of the positive signs from the community we have exposed above (Safari support, Firefox updating their position, PDF, etc.). Quickly after that, the Chromium issue state was changed from Obsolete to Assigned.

About JPEG XL

This is great news for the format, and I believe it will give it the final push for mass adoption. The format is excellent for all kinds of purposes, and I’ll be adopting it pretty much instantly for this and the Gaia Sky website when support is shipped. Some of the features that make it superior to the competition are:

  • Lossless re-compression of JPEG images. This means you can re-compress your current JPEG library without losing information and benefit from a ~30% reduction in file size for free. This is a killer feature that no other format has.
  • Support for wide gamut and HDR.
  • Support for image sizes of up to 1,073,741,823x1,073,741,824. You won’t run out of image space anytime soon. AVIF is ridiculous in this aspect, capping at 8,193x4,320. WebP goes up to 16K2, while the original 1992 JPEG supports 64K2.
  • Maximum of 32 bits per channel. No other format (except for the defunct JPEG 2000) offers this.
  • Maximum of 4,099 channels. Most other formats support 4 or 5, with the exception of JPEG 2000, which supports 16,384.
  • JXL is super resilient to generation loss.
  • JXL supports progressive decoding, which is essential for web delivery, IMO. WebP or HEIC have no such feature. Progressive decoding in AVIF was added a few years back.
  • Support for animation.
  • Support for alpha transparency.
  • Depth map support.

For a full codec feature breakdown, see Battle of the Codecs.

Conclusion

JPEG XL is the future of image formats. It checks all the right boxes, and it checks them well. Support in the overwhelmingly most popular browser engine is probably going to be a crucial stepping stone in the format’s path to stardom. I’m happy that the Chromium team reconsidered their inclusion, but I am sad that it took so long and so much pressure from the community to achieve it.

联系我们 contact @ memedata.com