Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support HDR gain maps #17399

Open
kmilos opened this issue Aug 30, 2024 · 7 comments
Open

Support HDR gain maps #17399

kmilos opened this issue Aug 30, 2024 · 7 comments

Comments

@kmilos
Copy link
Contributor

kmilos commented Aug 30, 2024

The storage of SDR image + gain map is currently being standardized as ISO/CD 21496-1.

This is already used by Adobe in "enhanced" DNGs, in Google's UltraHDR JPEGs (see also libultrahdr), and by Apple in HDR iPhone HEICs.

libavif and libjxl also added preliminary support for it.

Ideally, both import and export should be supported.

This approach seems to be gathering more momentum in the market compared to e.g. "true" 10-bit HDR only containers.

Related:

https://gregbenzphotography.com/hdr-photos/jpg-hdr-gain-maps-in-adobe-camera-raw/

https://www.reddit.com/r/DarkTable/comments/1f421d0/how_to_export_an_hdr_image_taken_on_iphone/

@wpferguson
Copy link
Member

wpferguson commented Aug 30, 2024

There is a PR for a lua script that can export UltraHDR, darktable-org/lua-scripts#502.

The PR also includes instructions on how to create the gainmap.

@ralfbrown
Copy link
Collaborator

darktable already has some support for gain maps on import (mostly in DNGs, e.g. #10289)

@kmilos
Copy link
Contributor Author

kmilos commented Aug 30, 2024

@ralfbrown Not the same thing, that one is for flat field correction in raw domain.

@JLTastet
Copy link

JLTastet commented Sep 7, 2024

Some relevant discussion on pixls.us (where the lua plugin came from)
https://discuss.pixls.us/t/manual-creation-of-ultrahdr-images/45004

Copy link

github-actions bot commented Nov 7, 2024

This issue has been marked as stale due to inactivity for the last 60 days. It will be automatically closed in 300 days if no update occurs. Please check if the master branch has fixed it and report again or close the issue.

@mcDandy
Copy link

mcDandy commented Nov 26, 2024

Would make darktable way mure usefull with this. My phone can export in the ultraHDR format and it is huge bump in aestetic quality. Now I have to export to exr and then use libultrahdr (which does not work becouse libultrahdr expects half float rgba not half float rgb). Reslults would be better if I had not need to go throught intermidiate formats.

@kanyck
Copy link

kanyck commented Dec 26, 2024

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants