Skip to content

Commit 439d1fb

Browse files
authored
Fix macos CI pipeline (#214)
Set explicit acex colorspace Signed-off-by: Aleksandr Motsjonov <[email protected]>
1 parent a49c1a9 commit 439d1fb

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@ $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/inst
5959
```
6060

6161
```sh
62-
$ brew install cmake ceres-solver imath boost
62+
$ brew install ceres-solver nlohmann-json openimageio nanobind robin-map
63+
```
64+
65+
```sh
66+
$ python3 -m pip install --break-system-packages pytest
6367
```
6468

6569
### Linux

src/rawtoaces_util/image_converter.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1825,13 +1825,21 @@ bool ImageConverter::save_image(
18251825
"chromaticities",
18261826
OIIO::TypeDesc( OIIO::TypeDesc::FLOAT, 8 ),
18271827
chromaticities );
1828+
image_spec["oiio:ColorSpace"] = "lin_ap0_scene";
18281829

18291830
auto image_output = OIIO::ImageOutput::create( "exr" );
18301831
bool result = image_output->open( output_filename, image_spec );
18311832
if ( result )
18321833
{
18331834
result = buf.write( image_output.get() );
18341835
}
1836+
else
1837+
{
1838+
std::cerr << "ERROR: Failed to write file: " << output_filename
1839+
<< std::endl
1840+
<< "Error: " << image_output->geterror() << std::endl;
1841+
}
1842+
18351843
return result;
18361844
}
18371845

0 commit comments

Comments
 (0)