Shipping JPEG XL in Chrome
Article URL: https://developer.chrome.com/blog/jpeg-xl-in-chrome Comments URL: https://news.ycombinator.com/item?id=49991227 Points: 249 # Comments: 131
Chrome has introduced support for decoding JPEG XL (.jxl) image format in version 155. JPEG XL is a next-generation image format that provides better compression compared to JPEG, offers lossless compression, built-in HDR support, lossless JPEG transcoding, and more. The developer team recommends using both AVIF and JPEG XL for the best results, as JPEG XL is most beneficial for high-fidelity or lossless compression, particularly of photographic images or when fine-grained progressive decoding is preferred.
JPEG XL's integration into Chrome required rewriting its decoder in Rust, a memory-safe programming language, to eliminate security risks associated with memory-unsafe languages like C++. The developers focused on ensuring memory safety and maintaining performance, using SIMD hardware available on modern devices for optimization. They built a SIMD abstraction layer, jxl_simd, to maintain high-performance SIMD optimization while restricting unsafe operations.
After rigorous testing using various techniques like fuzzing and AI code review, the developers found no memory safety bugs in the implementation. Chrome's decision to add JPEG XL was based on consistent developer feedback, especially from the Interop Project. The team encourages developers, content creators, and platform owners to start using .jxl images in their pipelines, urging them to report bugs and contribute to building a safer and faster web.
Rewritten by urgent.news; may contain errors — check the original.
Source: developer.chrome.com
This story
This is one outlet's version. Read the fullest account.
- Shipping JPEG XL in Chrome developer.chrome.com