HOME

TheInfoList



OR:

JPEG XL is a royalty-free raster-graphics file format that supports both lossy and lossless compression. It is designed to outperform existing raster formats and thus become their universal replacement.


Name

The name consists of ''JPEG'' (for the ''
Joint Photographic Experts Group The Joint Photographic Experts Group (JPEG) is the joint committee between ISO/IEC JTC 1/SC 29 and ITU-T Study Group 16 that created and maintains the JPEG, JPEG 2000, JPEG XR, JPEG XT, JPEG XS, JPEG XL, and related digital image standards. I ...
'', which is the committee which designed the format), ''X'' (part of the name of several JPEG standards since 2000: JPEG XT,
JPEG XR JPEG XR (JPEG extended range) is an image compression standard for continuous tone photographic images, based on the HD Photo (formerly Windows Media Photo) specifications that Microsoft originally developed and patented. It supports both lossy a ...
,
JPEG XS JPEG XS (ISO/IEC 21122) is an interoperable, visually lossless, low-latency and lightweight image and video coding system used in professional applications. Applications of the standard include streaming high quality content for virtual reality ...
), and ''L'' (for long-term). The L was included because the authors' intention is for the format to replace the legacy JPEG and last as long too.


Authors

The main authors of the specification are Jyrki Alakuijala, Jon Sneyers, and Luca Versari. Other collaborators are Sami Boukortt, Alex Deymo, Moritz Firsching, Thomas Fischbacher, Eugene Kliuchnikov, Robert Obryk, Alexander Rhatushnyak, Zoltan Szabadka, Lode Vandevenne, and Jan Wassenberg.


History

In August 2017, JTC1 / SC29 / WG1 (JPEG) published a call for proposals for JPEG XL, the next generation image encoding standard. The proposals were submitted by September 2018, leading to a committee draft in July 2019. It was mainly based on a combination of a proposal called PIK, submitted by
Google Google LLC () is an American Multinational corporation, multinational technology company focusing on Search Engine, search engine technology, online advertising, cloud computing, software, computer software, quantum computing, e-commerce, ar ...
, and a proposal called FUIF — itself based on FLIF — submitted by Cloudinary. The bitstream was informally frozen on with the release of version 0.2 of the libjxl reference software. The file format and core coding system were formally standardized on and respectively.


Description

The JPEG XL call for proposals talks about the requirement of a next generation image compression standard with substantially better compression efficiency (60% improvement) comparing to JPEG. The standard is expected to outperform the still image compression performance shown by
HEIC High Efficiency Image File Format (HEIF) is a container format for storing individual digital images and image sequences. The standard covers multimedia files that can also include other media streams, such as timed text, audio and video. HEIF ...
, AVIF,
WebP WebP is an image file format developed by Google intended as a replacement for JPEG, PNG, and GIF file formats. It supports both lossy and lossless compression, as well as animation and alpha transparency. Google announced the WebP format i ...
, and JPEG 2000. It also provides efficient lossless recompression options for images in the traditional/legacy JPEG format. JPEG XL supports
lossy compression In information technology, lossy compression or irreversible compression is the class of data compression methods that uses inexact approximations and partial data discarding to represent the content. These techniques are used to reduce data size ...
and lossless compression of ultra-high-resolution images (up to 1 terapixel), up to 32 bits per component, up to 4099 components (including alpha transparency), animated images, and embedded previews. It has features aimed at web delivery such as advanced progressive decoding and minimal header overhead, as well as features aimed at
image editing Image editing encompasses the processes of altering images, whether they are digital photographs, traditional photo-chemical photographs, or illustrations. Traditional analog image editing is known as photo retouching, using tools such as a ...
and
digital printing Digital printing is a method of printing from a digital-based image directly to a variety of media. It usually refers to professional printing where small-run jobs from desktop publishing and other digital sources are printed using large-format ...
, such as support for multiple layers, CMYK, and
spot color In offset printing, a spot color or solid color is any color generated by an ink (pure or mixed) that is printed using a ''single run'', whereas a process color is produced by printing a series of dots of different colors. The widespread offset ...
s. It is specifically designed to seamlessly handle
wide color gamut In color reproduction, including computer graphics and photography, the gamut, or color gamut , is a certain ''complete subset'' of colors. The most common usage refers to the subset of colors which can be accurately represented in a given cir ...
color spaces with high dynamic range such as Rec. 2100 with the PQ or HLG
transfer function In engineering, a transfer function (also known as system function or network function) of a system, sub-system, or component is a mathematical function that theoretically models the system's output for each possible input. They are widely used ...
.


Features

The main features are: * More functions: Improved functionality and efficiency compared to traditional image formats (e.g. JPEG, GIF, and PNG). * Bigger dimensions allowed: Image dimensions of over a billion (230−1) pixels on each side. * Lots of channels available: Up to 4099 channels: main channels: either one channel for grayscale, three channels for RGB, or four channels for CMYK. Additionally the rest of the channels as optional "extra" channels like alpha, depth, or
thermal A thermal column (or thermal) is a rising mass of buoyant air, a convective current in the atmosphere, that transfers heat energy vertically. Thermals are created by the uneven heating of Earth's surface from solar radiation, and are an example ...
data. * There can be multiple frames, with non-zero duration (for animation) or with zero duration (making them work more like layers in
graphics software In computer graphics, graphics software refers to a program or collection of programs that enable a person to manipulate images or models visually on a computer. Computer graphics can be classified into two distinct categories: raster graphics a ...
). Frames can be smaller (or larger) than the image canvas and can be blended in various ways. * Independent tiles: Decoding of sections of a large image by allowing images to be stored in tiles. * Progressive decoding: Mode specifically designed for responsive loading of large images depending on the viewing device's resolution. * Reversible JPEG
transcoding Transcoding is the direct digital-to-digital conversion of one encoding to another, such as for video data files, audio files (e.g., MP3, WAV), or character encoding (e.g., UTF-8, ISO/IEC 8859). This is usually done in cases where a target d ...
: ~20% size reduction can be achieved. * Lossless encoding: Includes lossless alpha encoding. * Support for both photographic and synthetic imagery: The format features two complementary modes that can be used depending on the image contents. * Graceful quality degradation across a large range of bitrates: Quality loss isn't as abrupt as with older formats. * Perceptually optimized reference encoder: It uses by default perceptual color space, adaptive quantization, and conservative default settings. * Support for
wide color gamut In color reproduction, including computer graphics and photography, the gamut, or color gamut , is a certain ''complete subset'' of colors. The most common usage refers to the subset of colors which can be accurately represented in a given cir ...
and HDR: JPEG XL has built-in support for various color spaces, transfer curves, and high screen brightness. * Support for
animated Animation is a method by which still figures are manipulated to appear as moving images. In traditional animation, images are drawn or painted by hand on transparent celluloid sheets to be photographed and exhibited on film. Today, most ani ...
content: For encoding realistic content regular
video codec A video codec is software or hardware that compresses and decompresses digital video. In the context of video compression, ''codec'' is a portmanteau of ''encoder'' and ''decoder'', while a device that only compresses is typically called an '' ...
s are preferred. * Efficient encoding and decoding without requiring specialized hardware: JPEG XL is about as fast to encode and decode as old JPEG using libjpeg-turbo and an order of magnitude faster to encode and decode compared to HEIC with x265. It is also parallelizable. * Royalty-free format with an open-source reference implementation: The software is available on GitHub under a 3-clause BSD license.


Technical details

JPEG XL is based on ideas from Google's PIK format and Cloudinary's FUIF format (which was in turn based on FLIF). The format is mainly based on two encoding modes: * VarDCT mode (variable-blocksize DCT) – it is based from the same DCT algorithm as legacy JPEG, but blocks, instead of being restricted to 8×8, come in various sizes (2×2 up to 256×256), non-square shapes (e.g. 16×8, 8×32, 32×64), or can use another transforms (AFV, Hornuss). It is only used for the 3 color channels, which typically use the XYB color space (although
YCbCr YCbCr, Y′CbCr, or Y Pb/Cb Pr/Cr, also written as YCBCR or Y′CBCR, is a family of color spaces used as a part of the color image pipeline in video and digital photography systems. Y′ is the luma component and CB and CR are the blue-diff ...
is also supported in order to recompress legacy JPEG). The VarDCT mode is based on (lossy) PIK. Lossy modes typically use the XYB color space derived from LMS. * Modular mode is responsible, among other things, for efficient lossless content encoding and also for lossy and near-lossless purposes. Modular can also be used internally in VarDCT to save 2D data, i.e. everything except the AC (high-frequency) DCT coefficients, including the DC image (which is always a 1:8 subsampled image so also includes low-frequency AC coefficients in case block sizes larger than 8×8 are used), the weights of adaptive quantization and filter strengths. Any additional/extra channels (e.g. alpha, depth,
thermal A thermal column (or thermal) is a rising mass of buoyant air, a convective current in the atmosphere, that transfers heat energy vertically. Thermals are created by the uneven heating of Earth's surface from solar radiation, and are an example ...
,
spot color In offset printing, a spot color or solid color is any color generated by an ink (pure or mixed) that is printed using a ''single run'', whereas a process color is produced by printing a series of dots of different colors. The widespread offset ...
s, etc.) are always encoded in the modular mode. It was based on FUIF, combined with elements of lossless PIK, lossless WebP, and new ideas that have been developed during the collaborative phase of the standardization process. Modular mode allows lossy compression with the help of the modified Haar transform called "squeeze" which has progressive properties, quality of the image increases with the amount of data loaded. One of the ways VarDCT-based images can be loaded more progressively is by saving the DC coefficients in a separate "DC frame" that uses modular squeeze: allowing previews corresponding to 1:16, 1:32 etc subsampled images. A squeeze transform can also be used to encode the
alpha channel In computer graphics, alpha compositing or alpha blending is the process of combining one image with a background to create the appearance of partial or full transparency. It is often useful to render picture elements (pixels) in separate pas ...
progressively together with VarDCT-encoded color channels, making both modes work in tandem. JPEG XL defaults to a visually near-lossless setting that still provides good compression. These modes can be assisted by separate modeling of specific image features called: * Splines for coding e.g. hairs (not yet used by the reference encoder). * Repeating "patches" like text, dots, or sprites. * Noise synthesis: since noise is hard to compress, it is better to separate it out and then regenerate it in the decoder. This is similar to
film grain Film grain or granularity is the random optical texture of processed photographic film due to the presence of small particles of a metallic silver, or dye clouds, developed from silver halide that have received enough photons. While film grain i ...
synthesis in modern video codecs like
AV1 AOMedia Video 1 (AV1) is an open, royalty-free video coding format initially designed for video transmissions over the Internet. It was developed as a successor to VP9 by the Alliance for Open Media (AOMedia), a consortium founded in 2015 th ...
, although JPEG XL's noise synthesis is not aiming to mimick the granularity of analog photographic film, but rather to model the
photon noise Photon noise is the randomness in signal associated with photons arriving at a detector. For a simple black body emitting on an absorber, the noise-equivalent power is given by :\mathrm^2 = 2 h^2 \nu^2 \Delta\nu \left( \frac + n^2 \right) where ...
at the pixel level like what you get on a digital camera at high
ISO ISO is the most common abbreviation for the International Organization for Standardization. ISO or Iso may also refer to: Business and finance * Iso (supermarket), a chain of Danish supermarkets incorporated into the SuperBest chain in 2007 * Iso ...
settings. JPEG XL codec can losslessly
transcode Transcoding is the direct digital-to-digital conversion of one encoding to another, such as for video data files, audio files (e.g., MP3, WAV), or character encoding (e.g., UTF-8, ISO/IEC 8859). This is usually done in cases where a target dev ...
a widely-supported subset of JPEG files, by directly copying JPEG's DCT block coefficients to 8×8 VarDCT blocks, making smaller file sizes possible due to JPEG XL's superior entropy coding. This process is reversible and it allows for the original JPEG file to be reconstructed bit-for-bit, although constraints limit support for some files. Prediction is run using a pixel-by-pixel decorrelator without side information, including a parameterized self-correcting weighted ensemble of predictors. Context modeling includes specialized static models and powerful meta-adaptive models that take local error into account, with a signaled tree structure and predictor selection per context. Entropy coding is
LZ77 LZ77 and LZ78 are the two lossless data compression algorithms published in papers by Abraham Lempel and Jacob Ziv in 1977 and 1978. They are also known as LZ1 and LZ2 respectively. These two algorithms form the basis for many variations includin ...
-enabled and can use either
asymmetric numeral systems Asymmetric numeral systems (ANS)J. Duda, K. Tahboub, N. J. Gadil, E. J. Delp''The use of asymmetric numeral systems as an accurate replacement for Huffman coding'' Picture Coding Symposium, 2015.J. Duda''Asymmetric numeral systems: entropy coding ...
or Prefix codes (useful for low-complexity encoders, or reducing the overhead of short streams). Animated (multi-frame) images do not perform advanced inter-frame prediction, though some rudimentary inter-frame coding tools are available: * Frames can be smaller than the full canvas size, leaving other pixels untouched. * Frames support several blending modes in addition to replacing previous frames, such as addition or multiplication. * Up to four frames can be ''remembered'' and referenced by later frames, using the "patches" coding tool.


Industry support and adoption

Besides Cloudinary and
Google Google LLC () is an American Multinational corporation, multinational technology company focusing on Search Engine, search engine technology, online advertising, cloud computing, software, computer software, quantum computing, e-commerce, ar ...
(originally), throughout JPEG XL's preliminary implementation in web browsers, various representatives of well-known industry brand names have publicly voiced support for JPEG XL as their preferred choice, including
Facebook Facebook is an online social media and social networking service owned by American company Meta Platforms. Founded in 2004 by Mark Zuckerberg with fellow Harvard College students and roommates Eduardo Saverin, Andrew McCollum, Dustin Mosk ...
, Adobe,
Intel Intel Corporation is an American multinational corporation and technology company headquartered in Santa Clara, California. It is the world's largest semiconductor chip manufacturer by revenue, and is one of the developers of the x86 seri ...
and the
Video Electronics Standards Association VESA (), formally known as Video Electronics Standards Association, is an American technical standards organization for computer display standards. The organization was incorporated in California in July 1989To retrieve the information, searc ...
,
The Guardian ''The Guardian'' is a British daily newspaper. It was founded in 1821 as ''The Manchester Guardian'', and changed its name in 1959. Along with its sister papers ''The Observer'' and ''The Guardian Weekly'', ''The Guardian'' is part of the Gu ...
,
Flickr Flickr ( ; ) is an American image hosting and video hosting service, as well as an online community, founded in Canada and headquartered in the United States. It was created by Ludicorp in 2004 and was a popular way for amateur and profession ...
and
SmugMug SmugMug is a paid image sharing, image hosting service, and online video platform on which users can upload photos and videos. The company also facilitates the sale of digital and print media for amateur and professional photographers. On Apri ...
,
Shopify Shopify Inc. is a Canadian multinational e-commerce company headquartered in Ottawa, Ontario. Shopify is the name of its proprietary e-commerce platform for online stores and retail point-of-sale systems. The Shopify platform offers online ret ...
, the Krita Foundation, and Serif Ltd.


Software


Codec implementations

* JPEG XL Reference Software (libjxl) ** license: New BSD License (previously Apache License 2.0) ** contains (among others): *** encode/decode library libjxl *** encoder cjxl *** decoder djxl *** fast lossless-only encoder fjxl *** tool for benchmarking speed and quality of image codecs benchmark_xl *** GIMP and Gtk pixbuf plugin file-jxl * J40: Independent, self-contained JPEG XL decode

** license:
MIT License The MIT License is a permissive free software license originating at the Massachusetts Institute of Technology (MIT) in the late 1980s. As a permissive license, it puts only very limited restriction on reuse and has, therefore, high license comp ...
No Attribution **
C99 C99 (previously known as C9X) is an informal name for ISO/IEC 9899:1999, a past version of the C programming language standard. It extends the previous version ( C90) with new features for the language and the standard library, and helps impl ...
single header library (no dependencies) ** In Roman numerals, "XL" denotes 40, hence the name *libjxl-tiny: a simpler encoder implementation of JPEG XL, aimed at photographic images without an alpha channel. ** license: New BSD License * jxlatte: Java JPEG XL decoder ** license:
MIT License The MIT License is a permissive free software license originating at the Massachusetts Institute of Technology (MIT) in the late 1980s. As a permissive license, it puts only very limited restriction on reuse and has, therefore, high license comp ...
* pyjxl: A Python JPEG XL decoder. ** license:
MIT License The MIT License is a permissive free software license originating at the Massachusetts Institute of Technology (MIT) in the late 1980s. As a permissive license, it puts only very limited restriction on reuse and has, therefore, high license comp ...
* jpeg-xl-encode: a PHP JPEG XL encoder. ** license:
MIT License The MIT License is a permissive free software license originating at the Massachusetts Institute of Technology (MIT) in the late 1980s. As a permissive license, it puts only very limited restriction on reuse and has, therefore, high license comp ...


Official support


Squoosh
– In-browser image converter *
Adobe Camera Raw Adobe Photoshop is a raster graphics editor developed and published by Adobe Inc. for Windows and macOS. It was originally created in 1988 by Thomas and John Knoll. Since then, the software has become the industry standard not only in rast ...
– Adobe Photoshop's import/export for digital camera images * Affinity Photo – raster graphics editor *
Chasys Draw IES Chasys Draw IES (previously called Chasys Draw Artist) is a suite of applications including a layer-based raster graphics editor with adjustment layers, linked layers, timeline and frame-based animation, icon editing, image stacking and comp ...
– raster graphics editor *
Darktable Darktable (stylized as darktable) is a free and open-source photography application program and raw developer. Rather than being a raster graphics editor like Adobe Photoshop or GIMP, it comprises a subset of image editing operations specifical ...
– raw photo management application * ExifTool – metadata editor *
FFmpeg FFmpeg is a free and open-source software project consisting of a suite of libraries and programs for handling video, audio, and other multimedia files and streams. At its core is the command-line ffmpeg tool itself, designed for processing of vid ...
– multimedia framework, via libjxl * GIMP – raster graphics editor *
gThumb gThumb is a free and open-source image viewer and image organizer with options to edit images. It is designed to have a clean and simple user interface and follows GNOME HIG, it integrates well with the GNOME desktop environment. Features ...
– image viewer and photo management application for
Linux Linux ( or ) is a family of open-source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991, by Linus Torvalds. Linux is typically packaged as a Linux distribution, w ...
*
ImageMagick ImageMagick, invoked from the command line as magick, is a free and open-source cross-platform software suite for displaying, creating, converting, modifying, and editing raster images. Created in 1987 by John Cristy, it can read and write ov ...
– toolkit for raster graphics processing *
IrfanView IrfanView () is an image viewer, editor, organiser and converter program for Microsoft Windows. It can also play video and audio files, and has some image creation and painting capabilities. IrfanView is free for non-commercial use; commercial u ...
– image viewer and editor for
Windows Windows is a group of several proprietary graphical operating system families developed and marketed by Microsoft. Each family caters to a certain sector of the computing industry. For example, Windows NT for consumers, Windows Server for ser ...
* KaOS – Linux distribution * Krita – raster graphics editor * libvips – image processing library * vipsdisp – high-performance ultra-high-resolution image viewer for Linux * Qt and KDE apps – via KImageFormats * XnView MP – viewer and editor of raster graphics *
Pale Moon Pale Moon is an open-source web browser with an emphasis on customization; its motto is "Your browser, Your way". There are official releases for Microsoft Windows and Linux, as well as contributed builds for various platforms. Pale Moon origi ...
– web browser


Unofficial or indirect support

* Microsoft Windows – A 3rd-party Windows Imaging Component (WIC) plugin adds viewing to
File Explorer File Explorer, previously known as Windows Explorer, is a file manager application that is included with releases of the Microsoft Windows operating system from Windows 95 onwards. It provides a graphical user interface for accessing the f ...
, Microsoft Photos, Windows Photo Viewer, and aware apps. *
macOS macOS (; previously OS X and originally Mac OS X) is a Unix operating system developed and marketed by Apple Inc. since 2001. It is the primary operating system for Apple's Mac computers. Within the market of desktop and lapt ...
– via a standalone app and a plugin for Quick Look *
GTK GTK (formerly GIMP ToolKit and GTK+) is a free and open-source cross-platform widget toolkit for creating graphical user interfaces (GUIs). It is licensed under the terms of the GNU Lesser General Public License, allowing both free and propriet ...
and GNOME image viewing apps (such as Eye of GNOME, GNOME Files, etc.) through the
GDK GDK (GIMP Drawing Kit) is a Library (computing), library that acts as a Wrapper pattern, wrapper around the low-level functions provided by the underlying windowing and graphics systems. GDK lies between the display server and the GTK library, ...
pixbuf plugin provided by the JPEG XL project


Preliminary web browser support

*
Firefox Mozilla Firefox, or simply Firefox, is a free and open-source web browser developed by the Mozilla Foundation and its subsidiary, the Mozilla Corporation. It uses the Gecko rendering engine to display web pages, which implements current ...
web browser – introduced for testing in Firefox Nightly build * Chromium/ Chrome web browser – was originally introduced for testing April 1st, 2021. On December 9th, 2022 despite widespread community opposition, the managers of Google completely removed JPEG-XL source code from Chromium.https://chromium-review.googlesource.com/c/chromium/src/+/4081749


Standardization status


Rivals

* AVIF - AV1 video codec in a HEIF container *HEIC - HEVC video codec in a HEIF container *
WebP WebP is an image file format developed by Google intended as a replacement for JPEG, PNG, and GIF file formats. It supports both lossy and lossless compression, as well as animation and alpha transparency. Google announced the WebP format i ...
- VP8 video codec in a RIFF container


Notes


References


External links

* * ** builds
Nightly dev builds

Community website

J40
Independent, self-contained JPEG XL decoder {{Compression formats XL Animated graphics file formats Graphics standards Image compression ISO standards ITU-T recommendations Open formats Raster graphics file formats