A customer of us reported that HDR images created by FreeImage are not correctly processed by various viewers like HDRScope and wxFalseColor because the exposure value in the header is set to 0 instead of 1 (which is the default). A value of 0 causes a division by zero during import and results in infinite values.
See rgbe_WriteMetadata() in PluginHDR.cpp. Either set header_info->exposure to 1, or don't add RGBE_VALID_EXPOSURE to header_info->valid, which will skip exporting the exposure value.
Hi,
"A value of 0 causes a division by zero during import and results in infinite values."
=> first this mean that there is a serious bug in loading softwares ...
Next, I have corrected the PluginHDR.cpp file as suggested.
See https://sourceforge.net/p/freeimage/svn/HEAD/tree/FreeImage/
Hervé
Fixed in release 3.18.0