返回综合榜
开发工具与框架Mozilla Hacks

Mozilla 宣布计划在 Firefox 中正式支持 JPEG XL

Mozilla 已发布在 Firefox 中正式支持 JPEG XL 的意向,Chrome 也计划支持,而 Safari 已有部分实现,因此该格式将在年底前获得跨浏览器支持。

该实现基于 jxl-rs,这是 Google Research 用 Rust 编写的 JPEG XL 解码器。此前 Mozilla 担心原有 10 万行多线程 C++ 实现会扩大攻击面,因此提出了这一要求。Firefox 的版本支持渐进式渲染,即图片可以在下载过程中逐步显示,这是 Safari 2023 年实现所缺少的功能。Mozilla 还推动了作为 Interop 2026 调查领域一部分的集成测试。

对于在 JPEG XL 和 AVIF 之间做选择的开发者,JPEG XL 擅长无损图像、渐进式渲染以及在不损失质量的前提下进一步压缩 JPEG,而 AVIF 在网页质量下文件更小。在 Mozilla 的示例中,AVIF 在中等和高质量下更小,但 JPEG XL 在无损场景下胜出,例如截图为 92 kB,而 AVIF 为 164 kB。Mozilla 建议使用能代表网站的图片集进行测试,并考虑对超大图片使用 JPEG XL,因为 AVIF 仅支持基础的渐进式渲染。

Mozilla announces Intent to Ship JPEG XL in Firefox

Mozilla has posted its intent to ship JPEG XL in Firefox, meaning the format will be supported across browsers before the end of the year, with Chrome also intending to ship and Safari already having a partial implementation.

The implementation is built on jxl-rs, a JPEG XL decoder written in Rust by Google Research after Mozilla raised concerns about the attack surface of the original 100,000-line multithreaded C++ implementation. Firefox's version supports progressive rendering, which lets an image display as it downloads, a feature missing from Safari's 2023 implementation. Mozilla also pushed for integration tests as part of an Interop 2026 investigation area.

For developers choosing between JPEG XL and AVIF, JPEG XL excels at lossless imagery, progressive rendering, and further compressing JPEGs without quality loss, while AVIF produces smaller files at web quality. In Mozilla's examples, AVIF was smaller at medium and high quality, but JPEG XL won at lossless, for instance 92 kB versus 164 kB for a screenshot. Mozilla recommends testing with a representative set of site images and considering JPEG XL for very large images because AVIF has only basic progressive rendering support.

JPEG XLFirefoximage formatAVIFRustweb standards
综合11
质量90
猎物热度0
时效0
信息来源1 个来源,主来源:Mozilla Hacks

猎鹰不保存原文正文。标题与摘要用于快速发现信息,事实细节请以来源原文为准。

查看来源