Open jbondhus opened 1 year ago
I've opened a discussion about this with ImageMagick as well, here it is for some additional context. At first we thought it might be a problem with how I was using ImageMagick, but it seems more and more likely that it's a problem with the viewer.
Thanks for your patience and for reporting this.
I am relying on DirectXTex for RGBE decoding, and it appears that it does not implement reading PRIMARIES metadata: https://github.com/microsoft/DirectXTex/blob/main/DirectXTex/DirectXTexHDR.cpp
I've converted an image with ImageMagick from TIF in the ProPhoto RGB space to a .hdr file with primaries set to match this color space. Despite this, the color profile is clearly being interpreted as sRGB in this viewer.
See tiff and hdr file here.
https://jbondhus-sharing.s3.us-east-1.amazonaws.com/2022/2022-11-30/attachment.7z
See below for a comparison between the original TIFF and what the HDR image viewer shows of the .HDR file I generated.
The file header is as follows in plain text, which looks correct to me - primaries of ProPhotoRGB...