Skip to content

Converting transfer functions (using assign-oetf and convert-oetf) #871

@SeanCurtis-TRI

Description

@SeanCurtis-TRI

Based on the documentation, I would expect the following to work:

ktx create --encode=basis-lz --format=R8G8B8_SRGB --assign-oetf=srgb --convert-oetf=linear foo.png foo.ktx2

(Converting the sRGB png into a linear color space ktx2 file). It's pretty clear that the documentation says if the oe transfer function assigned is different from the convert transfer function, that it gets converted.

However, I get the error message:

ktx create fatal: Invalid value to --convert-oetf "linear" for format "R8G8B8_SRGB". Transfer function must be sRGB for sRGB formats. See 'ktx create --help'.

Is my understanding incorrect or is this a bug? What am I missing?

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