界外OUTSIDE
搜索⌘ K
AI 中文全文 · 非官方译文

Chrome 正式推出 JPEG XL 支持

Shipping JPEG XL in Chrome

Chrome for Developers 原文署名:Luca Versari, Moritz Firsching, Philip Jägenstedt原文发布:2026年10月6日 · 原站未注明具体时间

Chrome for Developers — Luca Versari、Moritz Firsching、Philip Jägenstedt;CC BY 4.0。本站提供中文翻译与阅读排版,非官方译本。

以下为原文逐段中文翻译,保留图表与说明。AI 翻译并经 AI 对照复核,仍可能存在错误;核对数据和引用时请同时查看原文。译文发布:2026年10月8日 11:30(北京时间)。

发布日期:2026 年 10 月 6 日

我们很高兴地宣布,从 Chrome 155 开始,Chrome 将支持 JPEG XL(.jxl)图像格式的解码。JPEG XL 是一种新一代图像格式,旨在满足现代 Web 开发者和摄影师的需求。它的压缩效果比 JPEG 提升了 30–50%,还提供无损压缩、内置 HDR 支持、JPEG 无损转码等功能。

总体而言,我们建议同时尝试 AVIF 和 JPEG XL,以获得最佳效果。我们预计,JPEG XL 最适合高保真或无损压缩,尤其是照片的压缩,或是更倾向于采用细粒度渐进式解码的场景。

在本文中,我们将分享为何将 JPEG XL 引入 Chrome、如何利用 Rust 优先保障内存安全、为提升速度所做的大量性能优化工作,以及这段历程让我们对开发者反馈和 Web 标准生态有了哪些认识。

安全第一:用 Rust 重新实现解码器(jxl-rs)

在任何现代 Web 浏览器中,图像解码器都是最关键、也最常成为攻击目标的攻击面之一。它们直接处理来自网络的复杂、不可信的二进制结构,并在渲染进程内运行。过去,使用 C++ 等非内存安全语言编写的解码器往往容易出现越界读取、堆溢出和释放后使用等漏洞。

我们的安全模型以沙箱隔离和纵深防御为基础,并遵循“二项规则”(rule of two)。然而,沙箱隔离只是第二层防御。为了从源头消除这些安全风险,我们集成了 jxl-rs,这是一个完全使用 Rust 实现的 JPEG XL 解码器。

兼顾速度与安全的设计

内存安全至关重要。不过,相比需要大幅牺牲性能的方案,一个速度与最佳非内存安全替代方案大致相当的内存安全解码器,显然更容易让人作出选择。

现代编解码器要发挥性能,一个关键因素是充分利用现代设备上的 SIMD 硬件。为安全地做到这一点,Rust 的 target_feature_11 特性必须先成为稳定特性,这样便可使用 SIMD 指令,而无需编写 unsafe 代码。

下一步是构建一个 SIMD 抽象层(jxl_simd),其灵感来自 C++ 的 Highway 库;Highway 本身最初就是为 libjxl,也就是 JPEG XL 的 C++ 参考实现而开发的。这些进展共同促成了一个跨平台库的实现:它充分保留了 SIMD 性能优化,同时将 unsafe 操作限制在少数经过严格审查的位置。

jxl-rs 的性能优化建立在 libjxl 已有优化的基础上。其中包括为跨越区域边界的处理步骤提供通用处理流水线,同时尽量减少数据复制,以最大限度地发挥硬件性能。我们一直通过 jxl-rs 性能看板,跟踪这一 Rust 重新实现在不同硬件平台上的性能表现。

我们使用多种前沿技术验证了 jxl-rs 的实现,包括模糊测试和 AI 代码审查。在整个实现历程中,我们未发现任何内存安全漏洞,这再一次印证了 Rust 为内存安全带来的巨大改进。

开发者反馈与 Interop 项目

Chrome 团队会考虑来自多种渠道的 Web 开发者反馈,例如问题报告、问卷调查、开发者信号项目(Developer Signals Project)和 Interop 项目。我们决定正式推出 JPEG XL 支持,是基于 Web 开发者持续一致的反馈和请求。这一点在 Interop 流程中体现得尤为明显:JPEG XL 在 2026 年以及此前的几年中都是一项热门提案。

为了确保该格式在不同浏览器之间具有互操作性,我们参与了 Interop 2026 JPEG XL 调研,以确保测试覆盖 JPEG XL 在浏览器中的全部特性,并确保这些测试在 Chrome 中通过。

动手试试

随着 JPEG XL 正式进入 Chrome,Web 变得更快、内容更丰富,也更安全。我们鼓励开发者、内容创作者和平台所有者开始在自己的工作流程中使用 .jxl 图像和动画。

欢迎试用、提交问题报告,帮助我们继续为所有人构建更快、更安全的 Web。

致谢

我们感谢所有为 jxl-rs 或将其集成到 Chrome 中作出贡献的人,尤其感谢 Helmut Januschka 在 Chrome 集成和 jxl-rs 两方面作出的大量贡献,以及 Martin Bruse、Zoltan Szabadka、Sami Boukortt 和 Wonwoo Choi 对 jxl-rs 本身作出的大量贡献。

展开英文原文 · 与中文逐段对应

Shipping JPEG XL in Chrome

Published: October 6, 2026

We're excited to announce that Chrome is shipping decoding support for the JPEG XL ( .jxl ) image format starting from Chrome 155. JPEG XL is a next-generation image format designed to meet the needs of modern web developers and photographers. It offers 30-50% better compression than JPEG, lossless compression, built-in HDR support, lossless JPEG transcoding, and more.

In general, we recommend trying both AVIF and JPEG XL to get the best results. We expect that JPEG XL is most helpful for high-fidelity or lossless compression, especially of photographic images or in cases in which fine-grained progressive decoding is preferred.

In this post, we share why we brought JPEG XL to Chrome, how we used Rust to ensure memory safety first, the extensive performance work that makes it fast, and what the journey tells us about developer feedback and the web standards ecosystem.

Safety first: Reimplementing the decoder in Rust (jxl-rs)

Image decoders are one of the most critical and targeted attack surfaces in any modern web browser. They process complex, untrusted binary structures directly from the network and run inside the renderer process. Historically, decoders written in memory-unsafe languages like C++ have been prone to vulnerabilities such as out-of-bounds reads, heap overflows, and use-after-free bugs.

Our security model relies on sandboxing and defense-in-depth, guided by the rule of two . However, sandboxing is a secondary layer of defense. To eliminate these security risks at the source, we have integrated jxl-rs , a pure Rust implementation of the JPEG XL decoder.

Design for speed, without compromising safety

Memory safety is crucial, but a memory-safe decoder that is approximately as fast as the best non-memory-safe alternative is a much more obvious choice than a choice with a significant performance compromise.

A fundamental part of the performance of modern codecs is making full use of the SIMD hardware available on modern devices. To do so safely, target_feature_11 Rust feature had to be stabilized, which allowed the use of SIMD instructions without requiring unsafe code.

The next step was to build a SIMD abstraction layer ( jxl_simd ), inspired by the C++ Highway library (itself originally developed for libjxl , the C++ reference implementation of JPEG XL). Together, those developments allowed writing a multi-platform library that doesn't compromise on SIMD performance optimizations, while restricting unsafe operations to a small number of highly-vetted locations.

Performance optimizations in jxl-rs build on those in libjxl . This includes a generic processing pipeline for steps crossing region borders, while minimizing data copies to maximize hardware performance. We've been tracking the performance of the Rust reimplementation across different hardware platforms on the jxl-rs performance dashboard .

We verified the jxl-rs implementation with various state-of-the-art techniques, including fuzzing and AI review of the code, and have not found any memory safety bugs throughout the entire implementation history, providing yet another validation of the huge improvements that Rust brings to memory safety.

Developer feedback and the Interop Project

The Chrome team considers web developer feedback from a wide range of channels, such as bugs, surveys, the Developer Signals Project , and the Interop Project . Our decision to ship JPEG XL was based on consistent feedback and requests from web developers, most visible in the Interop Process, where it was a popular proposal in 2026 and several years prior.

To ensure the format is interoperable across browsers, we have participated in the Interop 2026 JPEG XL Investigation to ensure there is test coverage for all of JPEG XL's features in browsers, and that those tests pass in Chrome.

Try it out

With JPEG XL officially landing in Chrome, the web becomes faster, richer, and safer. We encourage developers, content creators, and platform owners to start using .jxl images and animations in their pipelines.

Try it out, file bugs , and help us continue building a faster and safer web for everyone.

Acknowledgements

We'd like to thank all the people who contributed to jxl-rs or its integration in Chrome, and especially Helmut Januschka for the substantial contributions both to the Chrome integration and jxl-rs , and Martin Bruse, Zoltan Szabadka, Sami Boukortt and Wonwoo Choi for their substantial contributions to jxl-rs itself.

查看本期独立摘要

这件事

Chrome 开发者博客宣布,Chrome 155 将支持 JPEG XL 图片解码。团队介绍,新格式可提升图片压缩效率,支持 HDR、渐进式显示和部分 JPEG 文件的无损转码,并使用 Rust 实现的 jxl-rs 解码器。这为开发者在画质、文件体积与加载体验之间提供了新的选项。

本页概括所列来源的重点,属于独立摘要;完整报道请阅读原站。整理时间:2026年10月8日 11:37(北京时间)。

TRACE THE SOURCE

信息从哪里来

已直接核对 Chrome for Developers 公告正文及10月6日发布日期。正文按 CC BY 4.0 提供中文译文,并保留原作者与许可署名;作者头像不作为新闻配图。

← 回到本期精选阅读来源原文