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?