Bug 265797
| Summary: | JPG gain maps are not rendered as HDR | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Greg <greg323464> |
| Component: | Images | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | ap, heycam, nicole, sabouhallawa, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari Technology Preview | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=270981 | ||
Greg
JPG images with a gain map are not properly rendered as HDR (EDR) on supporting displays. These images may be created with Adobe software (ACR and Lightroom) and Android 14 (at least with the Pixel 8 Pro). Only the base SDR image is displayed, the gain map is ignored.
Spec: https://helpx.adobe.com/camera-raw/using/gain-map.html
The Chrome, Edge, Brave, and Opera web browsers all properly display gain maps (including on Android devices running Android 14). While all of those browsers are a suitable workaround on MacOS (vs using Safari), they are all dependent upon WebKit for browsing on iOS / iPadOS. Therefore, it is not possible to properly view HDR photos on Apple iPhone / iPad, which is unfortunate as Apple has some of the best hardware out there.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
Thank you for the report. Do you have an example to easily test with?
Most of the time, these issues are below WebKit, and are better reported to Apple via https://feedbackassistant.apple.com. One way to check is whether the image is displayed correctly in Preview.app.
Greg
Adobe has made several JPG gain map samples available via https://www.adobe.com/go/gainmap_sample_photos
You can also see several more via https://gregbenzphotography.com/hdr-gain-map-gallery/. These images will render as HDR on MacOS via Chrome, Edge, Brave, and Opera when browsing with an XDR or otherwise HDR-capable MacOS computer. They will render as SDR on FireFox / Safari or on displays which do not support HDR.
Last I checked (MacOS 14.0 public release), core Apple apps (Preview / Photos) did not render JPG gain maps as HDR (displayed the SDR base image). However, Sonoma did add support for ISO HDR JPG gain maps (https://developer.apple.com/videos/play/wwdc2023/10181)
Radar WebKit Bug Importer
<rdar://problem/119497155>