Closed imbushuo closed 1 year ago
imbushuo shared some test images: https://github.com/AcademySoftwareFoundation/openexr-images/tree/master/Chromaticities
Thanks for your patience! I've made two tiny functional changes, falling back to a D65 whitepoint if white.y == 0, and updating Windows SDK prereqs. If you have no issues with my updates then I'll merge this.
I hijacked this PR a bit to do some more project file cleanups. I'll go ahead and merge this and we can pick up any additional changes later if needed. Thanks for the contribution!
Certain OpenEXR images may use color spaces such as ACES, therefore it's important to read chromaticities information and provide corresponding input to color management for accurate color reproduction (seems like even Photoshop is not doing so.)
The retrieval routine partially reuses the color information override routine for generating D2D1 Color Context, renamed corresponding variables to represent their corresponding purpose now:
m_customOrDerivedColorProfile
.Partially included the fix at https://github.com/13thsymphony/HDRImageViewer/pull/46 to address a build break. Unit tests are not fixed though (looks like they are kind of abandoned for a while.)
Included WinUI 2.7 package and enabled Windows 11 / Sun Valley visual styles.
Screenshots
Before
After