Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/inst
```

```sh
$ brew install cmake ceres-solver imath boost
$ brew install ceres-solver nlohmann-json openimageio nanobind robin-map
```

```sh
$ python3 -m pip install --break-system-packages pytest
```

### Linux
Expand Down
8 changes: 8 additions & 0 deletions src/rawtoaces_util/image_converter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1825,13 +1825,21 @@ bool ImageConverter::save_image(
"chromaticities",
OIIO::TypeDesc( OIIO::TypeDesc::FLOAT, 8 ),
chromaticities );
image_spec["oiio:ColorSpace"] = "lin_ap0_scene";
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

core fix


auto image_output = OIIO::ImageOutput::create( "exr" );
bool result = image_output->open( output_filename, image_spec );
if ( result )
{
result = buf.write( image_output.get() );
}
else
{
std::cerr << "ERROR: Failed to write file: " << output_filename
<< std::endl
<< "Error: " << image_output->geterror() << std::endl;
}

return result;
}

Expand Down