We use ocioconvert all the time to apply/bake "view luts" (which do primary
conversion when needed) and it works like a charm. Currently running
1.8.14, but worked with 1.8.5 before we upgraded.
Might be worth a shot testing it. If not only to narrow down what's
failing.
If not, I hope 2.0 works for you :)

On Wed, Nov 28, 2018 at 2:02 PM Etienne Fleurant <[email protected]>
wrote:

> As far as I know, you can't bake an OCIO color profile using colorconvert.
> You can only use aforementioned ociodisplay function to do that.
>
> Etienne
>
> On Nov 28, 2018, at 03:03, Daniel Flehner Heen <[email protected]>
> wrote:
>
> Have you tried using ImageBufAlgo.colorconvert() instead?
>
> On Wed, Nov 28, 2018 at 4:14 AM Stephen Mackenzie <[email protected]>
> wrote:
>
>> Yes, I had the same issue described here. The pybind11 work being done
>> for then-oiio-1.9-alpha fixed it for me, so I've just been awaiting the
>> oiio-2 release as a solve.
>> YMMV.
>>
>> On Tue, Nov 27, 2018 at 9:00 PM Etienne Fleurant <
>> [email protected]> wrote:
>>
>>>
>>> Hi,
>>>
>>> We are getting a seg fault using ImageBufAlgo ociodisplay in python.
>>> We're using:
>>> oiio 1.8.10
>>> compiled on CentOS 7 64bit
>>>
>>> Here's a code snippet of what I'm doing:
>>>
>>> print os.getenv( 'OCIO' ) # ---> prints
>>>> '<SOME_PATH>/spi-anim/config.ocio'
>>>> inputPath  = '<MY_PATH>/test_for_ocio.tif'
>>>> outputPath = '<MY_PATH>/output.tif'
>>>> srcBuf = OpenImageIO.ImageBuf( inputPath )
>>>> OpenImageIO.ImageBufAlgo.ociodisplay( srcBuf , dstBuf , 'sRGB' , 'Film'
>>>> )
>>>> dstBuf.write( outputPath )
>>>
>>>
>>> ---> outputs : Segmentation fault (core dumped)
>>>
>>> I'm able to make it work through oiiotool though:
>>> oiiotool '<MY_PATH>/test_for_ocio.tif' --iscolorspace 'lnh'
>>> --ociodisplay 'sRGB' 'Film' -o '<MY_PATH>/output.tif'
>>>
>>> but ultimately I'd like to make it work in python. It's a bit hard to
>>> debug since I have no idea why it's seg faulting...
>>>
>>> By the way, I also tried adding:
>>> srcBuf.specmod().attribute( 'oiio:ColorSpace' , 'lnh' ) after my srcBuf
>>> declaration above to no avail.
>>>
>>> That was to replicate what I have in my oiiotool example, since if I
>>> omit this from that command line, I was getting the following error:
>>> oiiotool ERROR: ociodisplay : DisplayTransform error. Cannot find
>>> inputColorSpace, named 'Linear'.
>>>
>>> Maybe I'm having a similar error with python resulting in the seg fault,
>>> but I'm not sure.
>>>
>>> I'm using the spi-anim config with this example.
>>> Any help would be appreciated. I could send an example files if needed.
>>>
>>> Thanks in advance
>>>
>>> _______________________________________________
>>> Oiio-dev mailing list
>>> [email protected]
>>> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
>>>
>> _______________________________________________
>> Oiio-dev mailing list
>> [email protected]
>> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
>>
>
>
> --
> -Daniel
>
> _______________________________________________
> Oiio-dev mailing list
> [email protected]
> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
>
> _______________________________________________
> Oiio-dev mailing list
> [email protected]
> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
>


-- 
-Daniel
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to