AnyImageImporter doesn't detect in-memory .hdr files with RGBE magic signature
pezcode opened this issue · 4 comments
HDR images can have two different magic signatures but AnyImageImporter only checks for one of them when loading from memory
Someone should update Wikipedia with that, heh. Doesn't help that stb_image doesn't track that to any source, and that the file utility doesn't recognize that signature either. The only code I found that actually uses it is https://www.graphics.cornell.edu/~bjw/rgbe/rgbe.c
I'm adding the detection but is there a chance you have a sufficiently small file (few kB) to add as a test case?
Yeah sure, this is the test file that triggered this for us:
The tool that produced it is https://github.com/kopaka1822/ImageViewer/
Ha, yes, the tool seems to be using exactly that bit of code as I linked. Commited as f91638c.
Thanks