Skip to main content
Known Participant
Sep 24, 2024 4:42 AM UTC
Needs More Info

P: Certain raw files export unusually large with JPEG XL

In most cases, exporting AVIF and JPEG XL with corresponding settings produces files of fairly similar size. There's some variance as expected, some images compress a bit better with one format than another.

 

But certain raw files inexplicably compress very, very poorly with JXL. Here's a sample DNG file that exhibits the problem. https://drive.google.com/file/d/1Cs7TiY7LeA3CGUVCAzqKUl9pLSK6ek7X/view?usp=sharing

 

It seems common to DNGs produced by the AI denoising function or HDR merge tool, but that is not universal (I've found raws from the same camera that can be enhanced or made into HDR stacks and still compress normally on export)

 

The settings in the attached screenshot barely compress it at all from the original DNG! Despite said DNG containing over double the amount of pixels, and ostensibly less compression. The AVIF version with the same resolution and quality setting is over 80% smaller than either one. Again, on most images switching to AVIF at the same resolution and quality setting tends to result in fairly similar file sizes, not a 80-90% size reduction. Something about the attached DNG does not seem to be compressing properly on export.

 

[moved from bugs to discussions according to the community rules  - Mod.]

 

40 replies

Participating Frequently
Nov 14, 2026 5:00 PM UTC

To bring modern tech like Jpeg XL forward, issues like this really need to get fixed quickly.

When users try out a new format and get broken files, it completely kills user confidence in adopting modern standards. Fixing this on Adobes end is crucial so people can actually trust Jpeg Xl and start actually using it.

Seems like an easy fix since Jonnyawesome3 already pointed out the root cause.

Translate
JesperJohag
Participating Frequently
Nov 13, 2026 4:09 PM UTC

Hey ​@Jonnyawsom3! 🙂 Is this related to the BUG with stitched photos in Lightroom? (jpeg xl-files of panoramas are huge. | Community)

Translate
Participant
Nov 13, 2026 4:59 PM UTC

Yes, it's the same issue with the same fix:

 

Translate
JesperJohag
Participating Frequently
Nov 1, 2026 10:32 AM UTC

The bug is described in detail in this post: jpeg xl-files of panoramas are huge. | Community

A developer of the libjxl used in Lightroom write this:
“If a developer sees this, you need to set uses_original_profile to false during lossy encoding with libjxl. The color space still gets preserved via metadata during decoding, but it will fix the huge sizes and bad looking output. It’s noted here.”

I have a couple of albums including stitched photos that I want to save in jpeg xl. But I have to wait until this bug is sorted. 

Translate
Participant
Oct 3, 2026 4:24 AM UTC

Hey there, I’ve helped work on the encoder the past few years and this certainly isn’t “a known limitation of the current JXL encoder (libjxl)”.

Any chance you could upload one of the huge files and send the link here? Then we can take a look and check for any obvious mistakes in how Adobe are saving it (Like being Lossless instead of Lossy, ect).

Translate
JesperJohag
Participating Frequently
Oct 5, 2026 2:30 PM UTC

Ofcourse! Here’s a folder with the dng and jpegxl.
JpegXL-files from panoramas in Lightroom

If a export the same image in Lightroom om my Iphone, the same thing happens.

Translate
Participant
Oct 5, 2026 4:02 PM UTC

Good news and bad news.

Good news is, I can immediately see the problem and it’s a (relatively) simple fix.

Bad news, it’s on Adobe’s side and means currently the saved images will range from just being very large, to looking corrupted. So we’ll have to sit and wait until they (hopefully) see this and fix it.

If a developer sees this, you need to set uses_original_profile to false during lossy encoding with libjxl. The color space still gets preserved via metadata during decoding, but it will fix the huge sizes and bad looking output. It’s noted here.

Thanks for sending the files, hopefully this gets sorted soon!

Translate
Claire H.
Community Manager
Community Manager
Sep 29, 2026 9:08 PM UTC

Hi ​@JesperJohag, The behavior you're seeing with JPEG XL exports of panoramas producing unusually large files is a known limitation of the current JXL encoder (libjxl). Certain image types compress poorly with JPEG XL compared to other formats, even at the same quality settings.

 

Unfortunately, there isn't a fix available at this time. We're monitoring future libjxl updates that may improve compression efficiency for these cases.

 

As you mentioned in your post, exporting your panoramas as AVIF instead of JPEG XL will help with this issue. AVIF handles these image types much more efficiently and should give you comparable quality at significantly smaller file sizes. ^CH

Translate
Participant
Oct 5, 2026 4:57 PM UTC

Just replying to bring light to a dev in this comment thread confirming the issue is on Adobe’s end and how to fix it, and it should probably be investigated rather than dismissed.

Translate
Known Participant
Nov 14, 2026 10:14 PM UTC

​@Claire H. ​@Sameer K ​@Anshul_Saini When one of the developers of the library you're using is here explicitly telling you that your claim is wrong and what the fix is, it's kinda wild that over a month has gone by without a response or acknowledgement of any kind.

Translate
JesperJohag
Participating Frequently
Sep 29, 2026 7:28 PM UTC


This only applies to stitched photos (panoramas). Jpeg and avif does not generate this problem.

5000x4000px

A developer of the libjxl used in Lightroom write this:
“If a developer sees this, you need to set uses_original_profile to false during lossy encoding with libjxl. The color space still gets preserved via metadata during decoding, but it will fix the huge sizes and bad looking output. It’s noted here.”

I have a couple of albums including stitched photos that I want to save in jpeg xl. But I have to wait until this bug is sorted. 
Sample: JpegXL-files from panoramas in Lightroom

 

 

{Additional context merged into Primary post’s body by Mod}

 

Translate
alexanderc59985531
Participant
Jan 7, 2025 1:20 PM UTC

Seems like this doesn't happen on HDR exports from large panoramas, only SDR exports as well. This further points to it being a bug.

Translate
alexanderc59985531
Participant
Jan 7, 2025 1:15 PM UTC

Here is a panorama over 100MP in size. Try exporting AVIF and JXL at the same quality level (I used 10). The JXL will be around 300+MB while the JXL will be around only 22MB.

 

Test file to try exports 

Translate
alexanderc59985531
Participant
Jan 4, 2025 5:29 PM UTC

It seems like JPG XL exports are either bugged or include transparancy which is unnecessary and makes them oversized. For example, in a normal image, JPG XL even in 16-bit mode is smaller than JPG 8-bit while retaining higher quality:

14MB JPG

8.6MB JXL 16-bit

 

When exporting from a DNG Panorama in Camera Raw, I get the following file sizes (all exported at quality 10):

187MB 16-bit JXL

88.5MB 8-bit JXL

17.6MB JPG

8.4MB 10-bit AVIF

 

For all intents and purposes, the 16 and 8-bit exports of JPG XL should be nearly as small or smaller than AVIF, but just aren't. Based on the preview app on Mac, they include transparancies while the other formats don't. There is no option to turn this off from the Camera Raw export tab. If it's a case of tranparancies taking up space for no reason, then a checkbox should be added with it off by default as camera raw files never contain transparancies.

 

This is preventing me from adopting JPG XL as my new export format for panoramas when it works really well for all other photo exports including HDR. I would include examples but the files would be too large to upload here.

 

Photoshop 26.2

Camera Raw 17.1

Mac OS Sequoia 15.2

Translate
alexanderc59985531
Participant
Jan 7, 2025 1:03 PM UTC

I have an update. This seems to only happen with panoramas over 100MP in size. I have no idea why the encoder starts freaking out at large pixel sizes but that could point more to the problem. Exporting directly from the panorama DNG causes this while exporting a 16-bit TIFF, then re-exporting to JXL is a workaround. Please fix this, Adobe.

 

To replicate, just use any DNG panorama made in Camera Raw over 100MP and try exporting to JXL vs AVIF. JXL will usually be 5-10x size of DNG.

Translate
Participating Frequently
Nov 19, 2024 8:08 PM UTC

I have this same issue on MacOS. If I open a .NEF (Nikon Raw File) it opens fine with Camera Raw. I can save the image with no issues from Camera Raw into DNG or JPG formats. However, with JPG XL, I have many issues:

 

1) The shows the same size as the .NEF file, so it has no compression at all.

2) The 'Very High' setting is 2 times LARGER that the .NEF file and has image discoloration and block artifacts.

3) The 'High' setting is about 1/2 the size of the .NEF file and has artifacts and color banding.

4) The 'Medium' setting has edge banding.

And so on.

 

 

 

Translate