Closed MarkCallow closed 5 months ago
I've also just noticed that ktx transcode
does not write KTXwriterScParams when its --zlib
or --zstd
options are used. Let's handle it under this issue rather than creating a new one.
My concept is that KTXwriterScParams contains the options needed to recreate the file so I expected to see, e.g.
In my interpretation KTXwriterScParams should only contain the parameters of the supercompression but not necessarily the used codec, which would have a few problems:
create
and encode
command use different argument names to select the codec, writing the --encode
/ --codec
parameters to KTXwriterScParams could cause confusionAgree with the first bullet. You do though have to look at other fields to find that information. The second is indeed true but KTXwriter tells you the command used. If —codec or —encode is included you can paste the content of KTXwriter followed by the content of KTXwriteScParams to recreate the command. Without code/encode included you have to look at other fields to see what kind of codec and at the help for the tool to find the option name. None of these things is a huge deal though.
Decided to continue to omit the --codec/--encode parameter. The ktx transcode
issue has been addressed in a PR.
My concept is that KTXwriterScParams contains the options needed to recreate the file so I expected to see, e.g.,
in a file created with
ktx create
orin a file created with encode.
Please add the
--encode
or--codec
options to the captured list.