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

Not recognizing RGBE image color space. #54

Open
jbondhus opened this issue Nov 30, 2022 · 2 comments
Open

Not recognizing RGBE image color space. #54

jbondhus opened this issue Nov 30, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@jbondhus
Copy link

jbondhus commented Nov 30, 2022

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.

_1001695

The file header is as follows in plain text, which looks correct to me - primaries of ProPhotoRGB...

#?RADIANCE
EXPOSURE=0.1
GAMMA=1
PRIMARIES=0.734699 0.265301 0.159597 0.840403 0.036598 0.000105 0.345704 0.35854
FORMAT=32-bit_rle_rgbe
@jbondhus
Copy link
Author

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.

ImageMagick/ImageMagick#5823

@13thsymphony
Copy link
Owner

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

#51 is also related to RGBE header decoding - potential resolutions are to ask for this functionality to be added to DirectXTex, add my own custom header processing, or find a different decoder library.

@13thsymphony 13thsymphony self-assigned this Dec 27, 2022
@13thsymphony 13thsymphony added the bug Something isn't working label Dec 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants