ktx_info(1)
π¦ ktx_info(1) π¦
Hiii bestie, welcome to the KTX Tools Reference page for ktx_info β the little tool that spills all the tea about your KTX files. ββ¨
πΈ NAME πΈ
ktx_info β ktx info. Prints information about a KTX2 file.
β¨ SYNOPSIS β¨
ktx info [option...] input-file
π DESCRIPTION π
ktx info prints the info about the KTX v1 or v2 file you pass as the input-file argument. If input-file is '-', the file gets read from stdin. No cap. π«Ά
For KTX v2 files, the command implicitly calls validate and prints any errors and warnings it finds to stdout. If the file is invalid, the info is shown on a best-effort basis and may be incomplete β like, itβs doing its absolute best with what it has. π
The JSON output formats conform to the https://schema.khronos.org/ktx/info_v0.json schema even if the input file is invalid and certain information cannot be parsed or displayed. Also, for JSON outputs the KTX file identifier is printed using "\u001A" instead of "\x1A" β because an unescaped "\x1A" sequence inside a JSON string breaks nearly every JSON tool. Bestie, thatβs not a vibe. π Note that this does not change the value of the string, only its representation. JSON output is only supported for KTX v2 files. If you request it for a KTX v1 file, an error is generated.
π Note
ktx info prints using UTF-8 encoding. If your console is not set for UTF-8, you will see incorrect characters in the output of the file identifier on each side of the "KTX nn". So likeβ¦ check your console setup before side-eyeing the output. π
π OPTIONS π
The following options are available:
--format text | json | mini-jsonβ Specifies the report output format. The possible options are:textβ Human readable text based format.jsonβ Formatted JSON.mini-jsonβ Minified JSON. The default format istext.
-h,--helpβ Print this usage message and exit.-v,--versionβ Print the version number of this program and exit.
π EXIT STATUS π
0β Success1β Command line error2β IO failure3β Invalid input file4β Runtime or library error5β Not supported state or operation6β 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
Catch you later, bestie β this page is serving Version 0.0.0, dated Tue Jan 1 1980 00:00:00. Byeee π
π¦ 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