Menu

#280 Wrong exposure in exported HDR files

None
closed
None
5
2018-07-31
2018-05-02
No

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.

Discussion

  • Hervé Drolon

    Hervé Drolon - 2018-07-28
    • status: open --> pending
    • assigned_to: Hervé Drolon
    • Group: -->
     
  • Hervé Drolon

    Hervé Drolon - 2018-07-28

    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é

     
  • Hervé Drolon

    Hervé Drolon - 2018-07-31
    • status: pending --> closed
     
  • Hervé Drolon

    Hervé Drolon - 2018-07-31

    Fixed in release 3.18.0

     

Log in to post a comment.

MongoDB Logo MongoDB