0

Hello I wanted to convert OpenEXR format file to png file.

I found this example from exr crates and ran code. However, the result of converted png file has different color from the original.

EXR file : enter image description here

Converted Png file:

enter image description here

Image crate also has save_with_format, but the result was also different from the original.

Is there any other way to convert exr to png file?

Youdi
  • 36
  • 5

1 Answers1

0

It seems like a known problem on conversion from EXR to PNG. It is even written in the TODO of the example

// TODO does the `image` crate expect gamma corrected data?

Though i don't know if any crate can automatically fix this, or if there is a good solution to automatically calculating gammas, you could try invoking imagemagick like this post How do I convert EXR to PNG and adjust brightness at the same time

Jdxp
  • 3
  • 3