ktx_validate(1)
π¦ ktx_validate(1) β the KTX Tools Reference glow-up
okay so bestie, welcome to ktx_validate, aka the vibe-check bouncer for your textures π
it lives in the KTX Tools Reference and honestly? it's giving "quality control queen."
β¨ NAME β¨
ktx_validate β ktx validate. literally just validate a KTX2 file. that's the whole job, and she does it well π
πΈ SYNOPSIS πΈ
ktx validate [option...] input-file
π DESCRIPTION π
so ktx validate validates the Khronos texture format version 2 (KTX2) file that you pass in as the input-file argument. she prints any found errors and warnings to stdout, no cap β¨
and periodt β if your input-file is -, the file gets read from stdin. iconic, flexible, we love a stdin queen π«Ά
the validation rules and checks are based on the official specification: KTX File Format Specification β https://registry.khronos.org/KTX/specs/2.0/ktxspec.v2.html
the JSON output formats conform to the https://schema.khronos.org/ktx/validate_v0.json schema. so like, if you're piping it into something, it's gonna behave π§
Note π βktx validateprints using UTF-8 encoding. if your console is not set for UTF-8, you'll see incorrect characters in the output of the file identifier on each side of the"KTX nn". so like... set your encoding, bestie, it's 2024 π
π₯ OPTIONS π₯
the following options are available:
--format text | json | mini-jsonβ specifies the report output format. possible options are:textβ human readable text based format.jsonβ formatted JSON.mini-jsonβ minified JSON.
the default format is text. lowkey the safest choice if you just wanna read it π
-g,--gltf-basisuβ check compatibility with theKHR_texture_basisuglTF extension. glTF girlies, this one's for you π-e,--warnings-as-errorsβ treat warnings as errors. strict queen behavior, honestly π-h,--helpβ print this usage message and exit. the classic "wait what do i do" button π-v,--versionβ print the version number of this program and exit. know your icon β
π EXIT STATUS π
- 0 β success π
- 1 β command line error π
- 2 β IO failure π
- 3 β invalid input file π©
- 4 β runtime or library error π«
- 5 β not supported state or operation π
- 6 β requested feature is not yet implemented π
π HISTORY π
Version 4.0
- initial version π£
π AUTHOR π
- MΓ‘tyΓ‘s CsΓ‘szΓ‘r [Vader] β RasterGrid www.rastergrid.com
- Daniel RΓ‘kos β RasterGrid www.rastergrid.com
absolute legends, both of them π«Άβ¨
and that's the whole page, bestie! this one's from Version 0.0.0, dated Tue Jan 1 1980 00:00:00 π go forth and validate, iykyk π
π¦ 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