ktx_deflate(1)
π ktx_deflate β the KTX Tools Reference, bestie edition β¨
okay so real talk, this is the manual for ktx_deflate, and it lives in the KTX Tools Reference family. Let me tell you everything about it, no cap π«Ά
β¨ NAME β¨
ktx_deflate β lowkey its whole personality is: deflate stuff.
Like, it deflates (a.k.a. supercompresses) a KTX2 file. That's the vibe. π
πΈ SYNOPSIS πΈ
ktx deflate [option...] input-file output-file
π¦ DESCRIPTION π¦
So here's the tea β: ktx deflate takes the KTX file you name as input-file and deflates it (supercompresses it, bestie, we're squeezing it down) and saves the result as output-file.
A few little details you literally cannot skip:
- if
input-fileis-, the file gets read fromstdinπ - if
output-pathis-, the output gets written tostdoutπ« - if your input file is already supercompressed, it gets inflated first and then supercompressed again using the options you passed here β and you'll get a warning about it. not me being nosy, that's just what happens π
- if the input file is invalid, the first validation error it runs into gets printed to
stderrand the command exits with the relevant non-zero status code. so yeah, it will absolutely tell on you π
β οΈ ngl this is important: ktx deflate cannot be applied to KTX files that have been supercompressed with BasisLZ. that's just not a thing it does. periodt.
π OPTIONS π
here's the whole menu, the following options are available:
--zstd <level>β supercompress the data with Zstandard. cannot be used with ETC1S / BasisLZ format. level range is[1,22]. lower levels give you faster but worse compression. and values above20? use those with caution because they require more memory π§ π₯--zlib <level>β supercompress the data with ZLIB. cannot be used with ETC1S / BasisLZ format. level range is[1,9]. lower levels give faster but worse compression, same deal as above π-q,--quietβ silences the warning about an already supercompressed input file. shhh π€«-e,--warnings-as-errorsβ treats warnings as errors. strict queen behavior π-h,--helpβ prints this usage message and exits. the classic escape hatch πͺ-v,--versionβ prints the version number of this program and exits. gotta know what you're working with β¨
β EXIT STATUS β
like, the number it leaves behind says everything about how it went:
0β success π slay1β 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 (soon tho, hopefully) π§
π HISTORY π
Version 4.0
- initial version β everyone starts somewhere π
π AUTHOR π
- Mark Callow [@MarkCallow] β the icon, the legend, the main character ππ«Ά
and that's the whole page bestie!! πΈ this absolute gem comes to you from Version 0.0.0, dated Tue Jan 1 1980 00:00:00 β yes, the most iconic timestamp of all time π go forth and deflate responsibly, ily, bye πβ¨
π¦ 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