ktx2ktx2(1)
π ktx2ktx2 β the KTX glow-up page π
okay so bestie, welcome to ktx2ktx2(1) from the KTX Tools Reference β the little tool that takes your dusty old KTX files and gives them a whole new main character era β¨
πΈ NAME πΈ
ktx2ktx2 β literally just "create a KTX 2 file from a KTX file." that's the whole vibe. no cap.
π SYNOPSIS π
ktx2ktx2 [options] [infile ...]
π¦ DESCRIPTION π¦
so ktx2ktx2 creates Khronos texture format version 2 files (KTX2) out of Khronos texture format version 1 files. glow-up complete, honestly iconic π₯
it reads each named infile. the output files get the same name as the input, except the extension is changed to .ktx2. slay.
when infile is not specified, it reads a single file from stdin and writes the output to standard out. lowkey elegant.
π«Ά heads up bestie: if unrecognized metadata with keys beginning"KTX"or"ktx"is found in the input file, it gets dropped, and a warning is written to standard error. not me dropping your metadata but also telling you about it π
the following options are available:
β¨ OPTIONS β¨
-b,--rewritebadoβ rewrite bad orientation metadata. some in-the-wild KTX files have orientation metadata with the key"KTXOrientation"instead ofKTXorientaion. this option rewrites such bad metadata instead of dropping it. so it's giving "fix it, don't trash it" π-ooutfile,--output=outfile β name the output file outfile. if outfile is'stdout', the output gets written to stdout. and if there's more than 1 input file, the command prints its usage message and exits. one outfile, one input, that's the rule π-f,--forceβ if the destination file already exists, remove it and create a new file, without prompting for confirmation regardless of its permissions. ruthless. obsessed. π₯-h,--helpβ print this usage message and exit. your little guide when you're lost π§-v,--versionβ print the version number of this program and exit. periodt.
β EXIT STATUS β
ktx2ktx2 exits 0 on success, 1 on command line errors and 2 on functional errors. know the numbers, bestie π
π HISTORY π
version 4.0
- initial version. everybody starts somewhere π
π AUTHOR π
Mark Callow, github.com/MarkCallow β the icon behind it all π
and that's the whole page, bestie! this one's from Version 0.0.0, dated Tue Jan 1 1980 00:00:00 β yeah, that timestamp is literally a vibe of its own ππ go forth and convert those textures fr fr π¦π
π¦ where this page comes from
- nixos 26.05: ktx-tools 4.4.2
- nixpkgs unstable: ktx-tools 4.4.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms