Journey to JPEG XL: open-source experiments shaped the future of image coding

Hacker News Top News

Summary

Google engineers recount the decade-long open-source journey behind JPEG XL, highlighting key experiments like WebP Lossless, Butteraugli, and Guetzli that shaped the next-generation image standard.

No content available
Original Article
View Cached Full Text

Cached at: 06/04/26, 12:43 AM

# Journey to JPEG XL: How open source experiments shaped the future of image coding Source: [https://opensource.googleblog.com/2026/06/journey-to-jpeg-xl-how-open-source-experiments-shaped-the-future-of-image-coding.html](https://opensource.googleblog.com/2026/06/journey-to-jpeg-xl-how-open-source-experiments-shaped-the-future-of-image-coding.html) byJyrki Alakuijala,Zoltán Szabadka&Luca Versari, Paradigms of Intelligence, Google Technology & Society ![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEic_WoSwZ84GajY2-xiBPt4P5ho2eN8-lyfLAx_8A_VfQpy-UKyJSxOjFDn118y4LCXy5EShCZ2L5NH2a5EC_cEh2WyY1oV6ZhipsJ2ZtYl7G2VRkGtP1YWU7m0Gq98NqEUCkcve9f4iDALjZ4diU1SFKXq60P_ba2FA1TP07Ovy8NLXrvVbWNCp1sueSE/s1600/jxl-graph.jpg) ## Building the Next Generation Image Standard The internet runs on images\. Since the early days of the web, there has been a relentless tension between visual fidelity and bandwidth\. For decades, the industry relied on the venerable JPEG standard for images loading fast\. It served us remarkably well, but as displays moved to High Dynamic Range \(HDR\) and Wide Color Gamut \(WCG\), the format began to show its limits\. The road to[JPEG XL](https://www.iso.org/standard/85066.html)\([JXL](https://github.com/libjxl/libjxl)\) wasn't a straight line\. It was a decade\-long exploration, creating a series of milestone projects testing radical ideas in psychovisual modeling, entropy coding, and optimization\. Today, as JPEG XL sees rapid adoption across operating systems and professional standards, we’re looking back at the experiments that made it possible\. --- ## The Early Foundation: 2011–2017 Our study began with a focus on understanding the limits of existing technology\. We didn't start by trying to write a new standard; we started by trying to make the current ones better, and learning their limitations\. This allowed us to make the new formalism more flexible and efficient in the right places\. - **WebP Lossless and Brotli:**Lossy WebP drew its lineage from video technology, the**WebP Lossless**\(2011\) represented an architectural and scoping departure\. We debuted the**[entropy image concept](https://www.rfc-editor.org/rfc/rfc9649.html#section-3.6.1)**, an innovative method utilizing a secondary image to orchestrate the selection of static entropy codes for the primary visual data\. We reapplied this approach later with data\-driven context modeling in the**[Brotli compression format](https://dl.acm.org/doi/abs/10.1145/3231935)**, enabling rich context modeling without slowing decoding\. - **Butteraugli:**Around 2014, we realized that raw mathematical compression \(PSNR\) wasn't enough, and simple psychovisual approximations \(SSIM and similar\) failed in color\-rich environments\. We built**[Butteraugli](https://github.com/libjxl/libjxl/tree/main/lib/jxl/butteraugli)**and the**[XYB color space](https://github.com/libjxl/libjxl/blob/6aa76f3134684f86e239263384230751b56938a7/lib/jxl/butteraugli/butteraugli.cc#L1445)**to mimic the human visual system's edge detection and opponent\-color processes in varying scale, allowing us to compress images more effectively\. - We pushed the legacy[JPEG 1 standard](https://jpeg.org/jpeg/)\(ISO/IEC 10918, introduced in 1992\) to its absolute limits through two key projects:**Guetzli and Brunsli**\. These initiatives provided invaluable insights into the strengths and limitations of traditional JPEG compression methods\.**[Guetzli](https://en.wikipedia.org/wiki/Guetzli)**\(2016\) is a slow high\-density perceptual encoder that used Butteraugli to find the optimal quantization tables, pushing legacy JPEGs to be 20\-30% smaller\.**[Brunsli](https://github.com/google/brunsli)**\(2015\) meanwhile, focuses on**lossless recompression**, allowing users to repack existing JPEGs into a smaller footprint without losing a single bit of original data\. After finishing with JPEG XL standardization, we returned to Guetzli's scope in 2024 and made the encoding much faster and HDR\-compatible in[Jpegli](https://opensource.googleblog.com/2024/04/introducing-jpegli-new-jpeg-coding-library.html)\. The feedback from these launches, ranging from the technical details of**WebP Lossless**to the psychovisual audits of**Guetzli**, proved indispensable\. While we already targeted the highest visual fidelity, feedback from detail\-critical e\-commerce helped us to refine the requirements\. --- ## The Convergence: 2017–2019 PIK Era and the 2019 FUIF Integration By 2017 we had powerful separate tools and it was time to fuse them\. In open sourcing**[PIK](http://github.com/google/pik)**we combined the efficiency of Brunsli with the psychovisual optimizations of Guetzli\. Further, PIK introduced a**real adaptive quantization field**and other optimizations\.**PIK**formed our proposal to the**ISO**standardization body\. The committee's[final call for proposals](https://jpeg.org/downloads/jpegxl/jpegxl-cfp.pdf)pushed toward extreme density, requiring bit rates as low as**0\.06 BPP**, equivalent to 35 times the compression of internet\-quality images and 80 times that of camera output\. This expansion of scope necessitated a significant complexification of the format and the encoder, leading to the Variable\-block\-size Discrete Cosine Transform \(**VarDCT**\) architecture that remains central to**JPEG XL**today\. We proposed to merge our PIK proposal with the FUIF \(Free Universal Image Format\) proposal from Cloudinary\. PIK used Brotli\-style distribution selection at encoding time, while FUIF refined codes incrementally during decoding\. The final JPEG XL standard became a best\-of\-both\-worlds compromise: we used PIK's faster\-to\-decode distribution selection with FUIF's sophisticated context trees\. The merger represented a departure from conventional one platform driven standardization, and prioritized technical synergy and collaboration\. [![A flowchart titled 'Building Blocks of the JPEG XL Standard' showing a left-to-right progression across three periods. The first period, 'Early Building Blocks (2011-2017)', contains four boxes: WebP Lossless & Brotli, Butteraugli & XYB, Guetzli, and Brunsli. Arrows point from these early technologies into the second period, 'The Convergence (2017-2019)', which consists of two main boxes: PIK and FUIF. Finally, multiple lines flow from both PIK and FUIF, converging into the third period, 'Final Standard'. This final section features a large orange box labeled 'JXL: JPEG XL Standard', which is described as merging PIK's distribution selection with FUIF's context trees.](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEic_WoSwZ84GajY2-xiBPt4P5ho2eN8-lyfLAx_8A_VfQpy-UKyJSxOjFDn118y4LCXy5EShCZ2L5NH2a5EC_cEh2WyY1oV6ZhipsJ2ZtYl7G2VRkGtP1YWU7m0Gq98NqEUCkcve9f4iDALjZ4diU1SFKXq60P_ba2FA1TP07Ovy8NLXrvVbWNCp1sueSE/s1600/jxl-graph.jpg)](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEic_WoSwZ84GajY2-xiBPt4P5ho2eN8-lyfLAx_8A_VfQpy-UKyJSxOjFDn118y4LCXy5EShCZ2L5NH2a5EC_cEh2WyY1oV6ZhipsJ2ZtYl7G2VRkGtP1YWU7m0Gq98NqEUCkcve9f4iDALjZ4diU1SFKXq60P_ba2FA1TP07Ovy8NLXrvVbWNCp1sueSE/s1600/jxl-graph.jpg)## JPEG XL Today: An Ecosystem Takes Root JPEG XL's efficiency, psychovisually\-optimized quality, file size, and coding speed, are being noticed\. We are seeing bottom\-up adoption in various industries, the most demanding fields are leading the way\. Because of its ability to handle high bit\-depth, high quality and even lossless data efficiently and robustly, JPEG XL has become foundational in several fields: - **Photography:**Used in Digital Negative \(DNG 1\.7\), Apple's ProRAW, and others\. - **Medical:**Adopted by[DICOM](https://www.dicomstandard.org/about), the international standard for medical images\. - **Publishing:**Integration into future versions of the PDF and EPUB standards\. The ecosystem has been maturing rapidly\. Adobe's photography software, Apple's iOS, macOS, and visionOS have native support, as do Linux distributions like Ubuntu and Microsoft's JPEG XL Image Extension for Windows\. Our[libjxl\-tiny](https://github.com/libjxl/libjxl-tiny)inspired[Shikino High\-Tech, Inc](https://www.shikino.co.jp/eng/)\. and[CAST](https://www.cast-inc.com/compression/jpeg-image-compression/jpeg-xl-e)to release the first commercial JPEG XL encoder IP core for ASIC and FPGA designs, aimed at real\-time, low\-power image capture\. Safari \(2023\) led among major browsers, while Firefox and Chrome currently maintain experimental support\. [![Two men in a bright office collaborating at a whiteboard. The board contains a hand-drawn flowchart titled 'VARDCT BLOCK JOINING STRATEGY'. The diagram illustrates small square blocks combining into larger patterned rectangles, connected by arrows. Text labels in the flowchart include 'Decision Logic: Rate-Distortion Cost', 'Merging Criteria', 'Entropy Coding Efficiency', 'Neighboring Blocks', and 'Variable Block Sizes'. The man on the left is pointing to the bottom left of the diagram, while the man on the right, who has long hair and a beard, is writing a mathematical equation on the board with a marker.](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhc06dUH5IJAcb7TkoKrPhI74B-ypK-20K34QMj8hVlys42KahbbBTdoPy-EyLUAw-bdDA9pyuw6bfErHGNN_XO8-awfM4dJgeFyA8KtATzMCY21gIdbFHwWBACllCfaBVVYHHPVyz8opEbWgEkTUNY6JY7aLmrryQRkRqKzCTqBcvpkqb57lP4aNeNLNc/s1600/luca-jyrki-ai-board.jpg)](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhc06dUH5IJAcb7TkoKrPhI74B-ypK-20K34QMj8hVlys42KahbbBTdoPy-EyLUAw-bdDA9pyuw6bfErHGNN_XO8-awfM4dJgeFyA8KtATzMCY21gIdbFHwWBACllCfaBVVYHHPVyz8opEbWgEkTUNY6JY7aLmrryQRkRqKzCTqBcvpkqb57lP4aNeNLNc/s1600/luca-jyrki-ai-board.jpg)JPEG XL design was not only countless hours of optimization, experimentation and eye\-balling the results, but also creative discussions at a whiteboard\. In this Gemini\-reconstructed scene, Luca Versari and Jyrki Alakuijala \(left\-to\-right\) debate VarDCT block selection heuristics\.## Looking Forward The story of**JPEG XL**stands as a testament to the efficacy of long\-horizon planning validated by intermediate functional milestones—with minimum\-viable prototypes like Guetzli and practical tools like Brunsli and Brotli—that invite feedback from the open\-source community\. A small research team can innovate by crystallizing solutions through quick iterations, with thousands, if not tens of thousands, of experiments in**psychovisual modeling**,**entropy**,**coding speed and complexity**, and the entire industry can eventually navigate toward a more efficient, beautiful future\. We started by trying to squeeze a few more bytes out of a 1992 JPEG 1 standard; with JPEG XL we hope to have established a foundation for digital imaging that can last for the next three decades\.

Similar Articles

Image Compression

Lobsters Hottest

A discussion on image compression techniques or tools, shared on lobste.rs.

Expansion Artifacts

Hacker News Top

A reflective essay on how lossy compression creates visible artifacts that influence digital aesthetics, forensics, and art.