Skip to content

Fails to assign OETF for inconsistent cubemap inputs (v4.3 alpha) #728

@donmccurdy

Description

@donmccurdy

When trying to encode a cubemap from PNG to KTX, I attempted to run the command below:

ktx create --cubemap --format R8G8B8_SRGB --assign-oetf srgb px.png nx.png py.png ny.png pz.png nz.png pisa.ktx2

Input files:

pisa.zip

The command fails with an unexpected error:

ktx create fatal: Input image "nx.png" has different transfer function (KHR_DF_TRANSFER_UNSPECIFIED) than preceding image(s) (KHR_DF_TRANSFER_SRGB).

These do indeed appear to be messy files with inconsistent color space data. Unfortunately pretty standard – it'd be really helpful if --assign-oetf could override any inconsistency in the input files. Am I correct in understanding that's the intention for the flag?

Metadata

Metadata

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