WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
291431
[HDR] Implement reliable way to detect an image hasHDRContent() or not
https://bugs.webkit.org/show_bug.cgi?id=291431
Summary
[HDR] Implement reliable way to detect an image hasHDRContent() or not
Said Abou-Hallawa
Reported
2025-04-11 09:34:08 PDT
Relying on the headroom of the ImageSource does not seem to be reliable. Besides Gain mapped images are not decoded as HDR images from the beginning. Instead they are decoded as SDR images until decoding as HDR is requested. Detecting whether an image has a gain map data has to rely on the AuxiliaryData of "{FileContents}" dictionary of the ImageSource.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2025-04-11 09:34:24 PDT
<
rdar://problem/149071262
>
Said Abou-Hallawa
Comment 2
2025-04-11 09:41:52 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/43958
Said Abou-Hallawa
Comment 3
2025-05-01 10:19:06 PDT
WebKit fails to detect that the images have HDR contents in
https://www.wide-gamut.com/test/image-hdr
.
Bug 291765
was filed to track the gain map separately. Let's use this bug for detecting the HDR-ness of the non gain-map images.
EWS
Comment 4
2025-05-01 12:59:12 PDT
Committed
294390@main
(f798905acff7): <
https://commits.webkit.org/294390@main
> Reviewed commits have been landed. Closing PR #43958 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug