Why Apple Uses JPEG XL in the iPhone 16 and What it Means for Your Photos

A person holds a smartphone horizontally with an image of a person in a red dress standing on a wooden path in a grassy outdoor area displayed on the screen. There is also a glowing icon featuring an "X" on the right side of the image.

The iPhone 16 family has arrived and includes many new features, some of which Apple has played very close to its vest. One such improvement is the inclusion of JPEG XL file types, which promise improved image quality compared to standard JPEG files while delivering relatively smaller file sizes.

What Is JPEG XL?

JPEG XL is a next-generation image encoding standard formally standardized in early 2022. Since then, JPEG XL (.jxl) has been adopted by numerous operating systems and applications, albeit with some notable holdouts.

Apple and its various software iterations have supported JPEG XL for at least a year, including in Finder, Preview, Final Cut Pro, Pages, Photos, Mail, Safari, and more. Adobe has also supported the format for a while, including in Adobe Camera Raw and Lightroom Classic.

A comparison image highlighting the efficiency of JPEG XL over traditional JPEG. On the left, a JPEG image of colorful umbrellas against a blue sky is shown with a score of 75.8, while the JPEG XL version on the right has a higher score of 86.3, indicating better quality despite smaller file size.
Credit: jpegxl.info

Despite JPEG XL supporting reversible JPEG transcoding and being superior to JPEG in terms of quality and efficiency, the format has yet to be widely adopted. Neither Chrome nor Firefox, two very popular web browsers, support the format natively, for example. Extensions are available to support JPEG XL files, but they’re not installed by default.

The JPEG XL community website cites the format’s ability to reduce file size while delivering “unmatched quality-per-byte.” Compared to a standard JPEG, a JPEG XL file is up to 55% smaller while providing a cleaner image that is visually lossless. Gone are typical JPEG artifacts.

Although it’s easy to appreciate the technical advantages of JPEG XL, it is also worth pointing out a substantial benefit of smaller file sizes: reduced environmental impact. As the world generates increasing amounts of data, it’s essential to consider ways to reduce data load. All that stuff lives somewhere, and wherever it is, it requires energy to operate.

It’s also important to note that JPEG XL supports wide-gamut and high dynamic range images. “JPEG XL is specifically designed to handle the rich colors of high-precision, high-dynamic range images,” the creators explain.

An abstract image showcasing vibrant colors and combining wide-gamut and HDR technology for stunning color accuracy. The design features a mix of reds, blues, greens, and yellows with various bubbles and shapes, emphasizing vivid and dynamic contrasts.
To get the full impact, view this webpage on a compatible browser, like Safari, using an HDR display. | Credit: jpegxl.info

The format supports up to 32 bits per channel, supports RGB and CMYK delivery, works with multiple frames, and is open source.

.jxl files support RGB, YCgCo, and XYB color space. The RGB color space is familiar to most photographers, but XYB? That’s an odd one. This color space is built on the physiological processes by which people see.

“XYB facilitates perceptually uniform quantization,” the JPEG XL community website explains. “JPEG XL uses a color space derived from LMS called XYB. Based on the lower spatial density of S cones, this is interpreted as a hybrid color theory where L and M oppose each other while S is handled trichromatically. As a result, less data is needed for storing blue signals without losing much quality. JPEG XL’s colorspace was derived from Guetzli’s butteraugli metric and is based on Google’s Pik project.”

A serene marina with numerous sailboats and yachts docked neatly in rows. Calm water reflects the boats and a partly cloudy sky above. The background features a tree-lined shore and distant hills under a bright blue sky.
Photo by Chris Niccolls

Overall, JPEG XL addresses many of JPEG’s shortcomings. The 30-year-old format is not very efficient, only offers eight-bit color depth, doesn’t support HDR, doesn’t do alpha transparency, doesn’t support animations, doesn’t support multiple layers, includes compression artifacts, and exhibits banding and visual noise. JPEG XL tackles these issues, and unlike WebP and AVIF formats, which each have some noteworthy benefits too, JPEG XL has been built from the ground up with still images in mind.

Why JPEG XL? Why Now?

As for why it is including JPEG XL in the iPhone 16 Pro, Apple tells PetaPixel that the format promises two primary benefits over standard JPEG format: improved image quality and better compression performance. If there’s a 32MB JPEG image, that same photo will be 24MB in lossless JPEG XL and, even more impressively, about five megabytes in perceptually lossless format.

Apple has wrapped JPEG XL photos inside a DNG container, enabling ProRAW files to retain their flexibility while being significantly smaller — up to nearly five times smaller.

A smartphone screen displays the Pro Default camera formats settings. Options include HEIF Max (up to 48 MP), ProRAW 12 MP, and ProRAW Max (up to 48 MP). It also shows settings for ProRAW format, including JPEG Lossless (Most Compatible), JPEG-XL Lossless, and JPEG-XL Lossy.

So, what’s the catch? Apple admits that JPEG XL is not universally adopted or supported, at least not yet, so it is not the ideal choice for every person. Each user will need to evaluate their workflow and needs and determine if JPEG XL fits. JPEG XL’s benefits won’t mean much to someone who works with software or platforms that don’t support the file.

As Apple explains on the new iPhone models, JPEG XL files are supported on iOS 17 and later and macOS 14 and later. However, as mentioned, these .jxl files are wrapped in a DNG container, so you can’t just fire off .jxl files from the iPhone 16 Pro.

A collage of six vibrant photos: A striking profile of a woman with colorful makeup, two people lying on a blanket outdoors wearing sunglasses, a woman in a white dress standing in a field, a person on a sunny rooftop, a close-up of a praying mantis, a person in a bright green sweater taking a selfie on a cobblestone street.
Credit: Apple

As has been the case with some of Apple’s other early adoptions, like Thunderbolt, not everything always works in every case. One can just look at the rollout of the HEIC format in the photo space for evidence of how new formats don’t always take hold and receive fast, widespread support. Compared to JPEG XL, HEIC — an implementation of HEIF — is just not good.

With JPEG XL, while the benefits of the format are obvious and numerous, there are apt to be growing pains. Apple has done its part to limit these issues by offering JPEG XL support across its platforms and utilizing DNG containers.

The other side of the coin is that because Apple is adopting and supporting JPEG XL, other companies may follow suit. While Samsung added JPEG XL to its latest Galaxy smartphones earlier this year, that doesn’t carry the same weight as Apple bringing JPEG XL to its latest smartphones and supporting it across its entire ecosystem.

That’s not to say that JPEG XL is a few short months away from being as ubiquitous as the standard JPEG image format. It will take time, and there’s no guarantee the format will ever be universally supported.

JPEG XL addresses many of the problems of JPEG images, so hopefully, JPEG XL will receive widespread support. As Apple fully understands, JPEG XL is clearly the superior format for photographers.

A wooden wall decorated with an eclectic mix of items including a guitar, paddle, windows, signs, a framed picture, and various knick-knacks. Two red wooden chairs sit in front, while the wall features signs that say "Inspire" and "No Trespassing.
Credit: Chris Niccolls

A Welcome Improvement With Some Practical Concerns

For now, those who happily live inside Apple’s walled garden will benefit from JPEG XL. Even when wandering outside the Mac/iPhone/iPad ecosystem, using JPEG XL can be a painless experience. It’s easy enough to open and edit JPEG XL files in Adobe software, for example.

A hand is holding a smartphone, displaying a camera viewfinder. The screen shows a well-lit person with curly hair, wearing a patterned shirt, seated on a red chair. The person's face is turned slightly to the side, and the background appears light and minimalistic.
Credit: Apple

However, beyond that, support will come later or may not come at all. JPEG is old and outdated, but its age has come myriad support and compatibility. Fortunately, reverse transcoding between JPEG and JPEG XL is possible, but even that still requires development efforts. The point is that just because JPEG XL is obviously better than many competing formats, it doesn’t mean everyone will adopt it.

An infographic titled "Environmental Impact" explains that delivering JPEG XLs instead of JPEGs could save 4.87 gigawatt-hours per day. This is equivalent to powering 487,000 average US homes for an hour and saving 3,500 metric tons of CO2 emissions per day.
Smaller file sizes with similar or even better image quality has significant environmental implications. | Credit: jpegxl.info

For iPhone photographers, the benefits far outweigh the potential downsides. There’s little doubt that JPEG XL is an excellent image format that offers the quality of heavyweight formats with a file size even smaller than that of JPEGs. What would typically be a 75-ish megabyte ProRAW Max file will be about 20MB in a lossy ProRAW format using JPEG XL compression. A lossless file is still under 50MB. Without compromising quality, those are significant storage savings.

Discussion