Skip to content

[FEATURE REQUEST] Add an inverse modifier to oiiotool's --ociodisplay option #3648

Closed
@doug-walker

Description

@doug-walker

Problem Description

The oiiotool --ociodisplay option is very useful for applying an OCIO DisplayViewTransform. This takes an image in a "src" color space and then applies a "view" transform for a specific "display". For example, one might take a source image in ACEScg space and apply the "ACES 1.0 - SDR Video" view for the "sRGB - Display", using either of the following:

% oiiotool acescg.exr --ociodisplay:from="ACEScg" "sRGB - Display" "ACES 1.0 - SDR Video" -o srgb.jpg
% oiiotool acescg.exr --iscolorspace "ACEScg" --ociodisplay "sRGB - Display" "ACES 1.0 - SDR Video" -o srgb.jpg

However, it is often useful to be able to apply the DisplayViewTransform in the inverse direction. For example, to convert sRGB back to ACEScg, inverting a specific view transform. The ocioconvert tool (one of the OCIO command-line tools) is already able to do this, as follows:

% ocioconvert --invertview srgb.exr "sRGB - Display" "ACES 1.0 - SDR Video" acescg.exr "ACEScg"

Inverting a DisplayViewTransform is easily possible via the OCIO v2 API. Simply set the direction of the DisplayViewTransform to TRANSFORM_DIR_INVERSE.

Proposed solution

The --ociofiletransform option in oiiotool already has an "inverse" modifier. So the proposed solution is to add an "inverse" modifier to --ociodisplay.

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