Open Bug 1832622 Opened 1 year ago Updated 7 months ago

JPEG + Gain Map support for HDR image display

Categories

(Core :: Graphics: ImageLib, enhancement)

enhancement

Tracking

()

UNCONFIRMED

People

(Reporter: adixon, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36

Steps to reproduce:

Chrome Canary 114 and later has support for JPEG + Gain map for HDR display via the Skia renderer. Gain maps are additional data added to an image to specify the difference between the SDR and HDR image. The advantage is that existing JPEG readers will display the image using the SDR data, and the SDR display is consistent across devices. No Firefox changes are necessary to display these JPEGs in SDR, but by adding support for the Gain map, the same file can be used for HDR display on HDR monitors.

This Adobe helpx page has more information on the format and a link to some sample files: https://helpx.adobe.com/camera-raw/using/gain-map.html. At this time the standard is also not finalized.

There's also a larger dependency on HDR display in Firefox that's needed for this to work: https://bugzilla.mozilla.org/show_bug.cgi?id=HDR

Duplicate of this bug: 1854793

library for JPG gain maps:
https://github.com/google/libultrahdr

FYI that this is quickly becoming a standard. Chrome v116+, MS Edge v116+, Brave v1.58+, and Opera v102+ all have HDR support with JPG gain maps enabled by default now. Chrome also has AVIF gain maps under a dev flag.

You need to log in before you can comment on or make changes to this bug.