Copy link to clipboard
Copied
Hi,
I have a question regarding HDR editing and export in the newest update to Lightroom.
I've been testing it since yesterday, and in general, it works great—as long as I'm working on HDR displays and also viewing the exported files on an HDR display (e.g., on an iPhone or the internal HDR display on my MacBook). However, I've noticed that exported AVIF or JPG XL files are heavily clipped when displayed on a non-HDR display, such as the Apple Studio display.
This behavior is different compared to HDR pictures created by the iPhone camera. Those show extended highlights when displayed on an HDR display but also exhibit nice tone mapping when displayed on a non-HDR display.
I even tested it with Lightroom: I imported an HDR HEIF made on an iPhone into Lightroom, and Lightroom displayed it nicely in HDR during editing. I then exported it back to Apple Photos as an HDR AVIF. On the iPhone and MacBook HDR displays, the original and exported files looked essentially the same. However, when I moved the Photos window to the Studio display, the original iPhone picture still looked nice and tone-mapped, while the AVIF was heavily clipped.
Now, after watching this video, https://youtu.be/HBVBLV9KZNI?si=5l3ozsiM16Xq5cAV I understand that Apple and Adobe are working together to introduce a gain map-based HDR standard for still images. As I understand it, gain maps are precisely what allow for controlled compatibility and tone mapping of a single image so that it looks great on both HDR and SDR displays.
My question is: Are the HDR files currently exported from Lightroom lacking gain maps, which is why they are not compatible with SDR displays? Or is it that Apple Photos software doesn't yet fully support AVIF HDR files with gain maps, but the images are, in principle, future-proof and already have gain maps encoded? Could we expect that, with the right software, they would look more like the "SDR preview" in Lightroom, available in HDR editing mode?
JPG Files can contain a Gain Map if they have HDR Information. AVIF and JXL do not yet contain Gain Maps
Copy link to clipboard
Copied
AFAIK, you can select to add a gaim map if you export an HDR image as JPEG. The support for gain maps is very limited at present however. Google Chrome apparently supports them, but I think that's about it. And yes, if the software supports them, then your image will look like the 'SDR preview' when viewed on an SDR display.
Copy link to clipboard
Copied
Ok, I checked JPG with "HDR output" and in conditions described by me above it is not clipping, but it is also not HDR, at least when displayed in Apple Photos and judged by eye. So it seems to me that current state of support is still generally half-there and there is no way to create image that would look good on HDR and SDR displays.
Copy link to clipboard
Copied
I think my initial remark was not entirely correct. The way I understand it is as follows. By itself, JPEG does not support HDR. If you export as JPEG with HDR enabled, then the SDR Preview will be exported as the base JPEG image. That means no clipping, but also no HDR. What the gain map does is add the HDR information, so an app that does support gain maps can show the image in HDR.
Copy link to clipboard
Copied
How can I export a JPG with "HDR output." I see an option for AVIF exports, but not for JPG:
Copy link to clipboard
Copied
You don't 'set' anything. If your image had HDR components and you export it as JPG, the Gain Map is included as needed. There isn't an HDR setting such as for an AVIF or a JXL.
Copy link to clipboard
Copied
JPG Files can contain a Gain Map if they have HDR Information. AVIF and JXL do not yet contain Gain Maps
Copy link to clipboard
Copied
If AVIF and JXL don't support gain maps yet, does that mean the SDR settings have no effect? I've been trying to switch to HDR, but there are still too many surfaces where HDR isn't supported and the current outputs with no gain maps get completely blown out so they're practically unviewable.
Copy link to clipboard
Copied
"If AVIF and JXL don't support gain maps yet, does that mean the SDR settings have no effect?"
With regard to Exported files, that is correct.
Copy link to clipboard
Copied
Hi Rikk,
I understand that it might be to early to say/reveal, but should we expect some changes on how HDR is handled in coming months? My understanding based on videos from newest WWDC is that Apple want to push for standardization of "Adaptive HDR" in jpg and heif formats. What's more they explicitly stated that they understand by that both BW low res gain maps in their original implementation as well as full res color (I understand that how hdr jpgs exported from Lightroom works). Can we (ever) expect support for HDR HEIFs export from Lightroom?
Copy link to clipboard
Copied
Hi~ for export AVIF/JXL with HDR gain maps, October release notes for lightroom said that now gain map is supported in export HDR photos, is that means we can export AVIF/JXL with gain maps? or still there are other limitations.
Copy link to clipboard
Copied
That is supported now too, when you enabled both HDR output and "maximize compatibility" (the latter is assumed if not shown as an option, such as when exporting HDR content as a JPG - since the base image would not support HDR without a gain map).
Copy link to clipboard
Copied
Does this work only in Lightroom Classic? I don't see such an option in Lightroom (Desktop).
Copy link to clipboard
Copied
My experience is the same, LRC seems to offer more support than LRD in this release. The key one is JPG gain maps, as support for AVIF gain maps really is not ready other than for testing (Chrome supports it under a dev flag). I expect that will be a critical format by the end of 2025, but it isn't something I would use just yet. Will be amazing when we can share smaller / higher-quality AVIF gain maps instead of JPG gain maps (JXL doesn't seem promising anytime soon on the web given that Chrome pulled support for JXL).
Copy link to clipboard
Copied
To be fair, my primary concern was the ability to store my photos—and display them correctly—in Apple Photos.
Thanks to tips from another user, I discovered it is possible now: https://community.adobe.com/t5/lightroom-ecosystem-cloud-based-discussions/not-able-to-see-improveme...
It seems there is some bug in the macOS version of Apple Photos that strips gain maps from files imported through the desktop app. But airdropping to iPhone works: the file then correctly syncs and displays the HDR version on HDR screens and the SDR version on SDR screens, desktop Photos included.
EDIT: I was wrong. New "ISO HDR" maps indeed behave differently in Apple's apps, but in no way can I say they work correctly. After syncing through iCloud, they no longer work correctly. Interestingly, while Photos after syncing display the SDR version, Preview or QuickLook display only the HDR version (even on SDR display, which destroys colors)
Copy link to clipboard
Copied
I imported some gainmap AVIF files to my iPad (via a USB drive) to test it. They work fine in the photos app there, but the copies my iPhone got via iCloud sync do not display in HDR. Which is annoying, because they seem to be working fantastic directly on the iPad. Zero tonemapping glitches, small file size, all the benefits you'd expect.
And of course, AVIF and JXL are both still broken in iMessage, even in iOS 18. Back to JPG, I guess. Gainmap JPGs seem pretty flawless on iOS 18. The show in HDR across the Photos apps on multiple devices, they post to Instagram in HDR, they send via iMessage in HDR, they seamlessly fall back in unsupported apps...the file size is just so big compared to the newer options though.
Copy link to clipboard
Copied
Interesting. I will test more tomorrow, but one JPEG file I tested behaved correctly only on the device it was imported into. In other words, it behaved like AVIF.
Copy link to clipboard
Copied
Hmm, perhaps I was mistaken. I'll do some more testing this evening
Copy link to clipboard
Copied
I'm seeing mixed success with ISO JPG on iOS 18.0. I have some files that render and one that does not (the failure is a low res image and perhaps that is the issue - as the others have a mix of color spaces and map channel depth that work). Also, when I send an ISO HDR JPG that works on my end (at least when viewed large, never as a thumbnail), the receiving end does not show as HDR (receiving device also iOS 18.0, over iMessage).
I've also seen that ISO HDR AVIF from ACR v17.0 does not work in Chrome (won't even render the base image). So there are clearly some bugs in the initial support across various parts of the ecosystem. Hopefully ironed out pretty quickly. I'm submitting bug reports in Apple Feedback Assistant.
Copy link to clipboard
Copied
Ok, following up on this after some more careful testing. For files exported by LrC 14:
Plain HDR AVIF (no gainmap): works the same as it has since iOS 17. Tonemapping/display adaption is imperfect, but it displays in HDR on my iPhone and iPad. Displays in HDR on Win 11 (24H2) Photos app as well
Gainmap AVIF: Displays in HDR on the iPad, but not the iPhone - regardless of which device it was imported on! But also, has weird crushed shadows that is not present on the gainmap-less version or the gainmap JPG. Win 11 Photos sees it as SDR.
Gainmap JPG: Works perfectly on the iPad (although with almost triple the file size of gainmap AVIF + noticeably worse quality for the same image and same compression strength slider setting). Does NOT display in HDR on the iPhone 16 Pro, regardless of which device imported it. Win 11 Photos also sees it as SDR.
However, this behavior is not consistent for all gainmap JPG files! I have some files on my iCloud Photos that were taken with a friend's Pixel 8 Pro, these display in HDR on both iPhone and iPad just fine. Why does the iPhone show these in HDR but not the ones from Lightroom? Absolutely no idea!
Should also note: my 12.9 M1 iPad Pro's handling of bright HDR highlights on regular (no gainmap) HDR AVIF/JXL files is wildly different from both iOS 17, and on the iPhone 16 Pro despite also running iOS 18.
Copy link to clipboard
Copied
You can also test for gain maps with Adobe's demo tool, which I show towards the end of my video on gain maps: https://gregbenzphotography.com/hdr-images/jpg-hdr-gain-maps-in-adobe-camera-raw/
Copy link to clipboard
Copied
Yep, I checked it. I hope there will be support for gain maps in AVIF/HEIF in both Lightroom and Apple photos, otherwise as it stand now exporting HDR pics create a lot of strange display issues in grid view in Apple Photos, and is not really working on non-HDR displays (and I have a few: iPad, MacBook Air, Studio Display etc). It is really frustrtating since it sseem all parties agreed on standards and yet not implemented those (yet?).
Copy link to clipboard
Copied
FYI on a related feature request I've submitted on custom gain maps to allow greater artist control to improve quality: