Skip to content

[HELP] How to properly identify colorspaces without the risk of failure in other versions of OpenImageIO #4965

@milasudril

Description

@milasudril

The ColorSpace information provided by OpenImageIO appears to have changed in newer version. I would like to bump it to a newer version, but I do not want to replace the version provided by the system. The question:

If I look at the documentation v 2.4 for color space I find, among others sRGB and Linear. When I try to read a regular PNG, and a regular BMP, and a regular OpenEXR, it tells me that the two first are sRGB, and the third is Linear (as expected). However, in version 3.1, Linear is now called lin_rec709_scene. Does this mean that my app will silently break (no compile-time error or warning), when building against 3.1, or can I still test for color space linear?

It is possible that I should really run the image through OpenColorIO, but for my use-case, handling of linear and non-linear rec709 is sufficient, at least for now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions