From 51e1aaca85d343c22dc6f108b47d0743736dae20 Mon Sep 17 00:00:00 2001 From: Larry Gritz Date: Wed, 30 Aug 2023 09:51:44 -0700 Subject: [PATCH] exr: don't suppress "oiio:ColorSpace" attribute on output Hmmm, ops, looks like for some time setting the "oiio:ColorSpace" attribute when outputting an openexr file just got dropped on the floor. I don't think this is the right or intended thing to do. Signed-off-by: Larry Gritz --- src/openexr.imageio/exroutput.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/openexr.imageio/exroutput.cpp b/src/openexr.imageio/exroutput.cpp index 9f7b4b0c09..6ea08ec79a 100644 --- a/src/openexr.imageio/exroutput.cpp +++ b/src/openexr.imageio/exroutput.cpp @@ -967,7 +967,8 @@ OpenEXROutput::put_parameter(const std::string& name, TypeDesc type, if (Strutil::istarts_with(xname, "oiio:")) { if (Strutil::iequals(xname, "oiio:ConstantColor") || Strutil::iequals(xname, "oiio:AverageColor") - || Strutil::iequals(xname, "oiio:SHA-1")) { + || Strutil::iequals(xname, "oiio:SHA-1") + || Strutil::iequals(xname, "oiio:ColorSpace")) { // let these fall through and get stored as metadata } else { // Other than the listed exceptions, suppress any other custom