KTX Tools Reference 4.3.2
Libraries and tools to create and read KTX image texture files.
Loading...
Searching...
No Matches
ktx info

Print information about a KTX2 file.

SYNOPSIS

ktx info [option...] input-file

DESCRIPTION

ktx info prints information about the KTX2 file specified as the input-file argument. If the input-file is '-' the file will be read from the stdin. The command implicitly calls validate and prints any found errors and warnings to stdout. If the specified input file is invalid the information is displayed based on best effort and may be incomplete.

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. Additionally, for JSON outputs the KTX file identifier is printed using "\u001A" instead of "\x1A" as an unescaped "\x1A" sequence inside a JSON string breaks nearly every JSON tool. Note that this does not change the value of the string only its representation.

Note
ktx info prints using UTF-8 encoding. If your console is not set for UTF-8 you will see incorrect characters in output of the file identifier on each side of the "KTX nn".

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.
-h, --help
Print this usage message and exit.
-v, --version
Print the version number of this program and exit.

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