### Install ltk-tex-utils on Windows Source: https://github.com/leaguetoolkit/ltk-tex-utils/blob/main/README.md Installs the latest release of ltk-tex-utils to a user-specific directory and adds a shim to the user PATH. Run this in PowerShell. ```powershell iwr -useb https://raw.githubusercontent.com/LeagueToolkit/ltk-tex-utils/main/scripts/install-windows.ps1 | iex ``` -------------------------------- ### Development: Inspect TEX file from source Source: https://github.com/leaguetoolkit/ltk-tex-utils/blob/main/README.md Example of running the 'info' subcommand for a TEX file when developing from source. ```bash cargo run -p ltk-tex-utils -- info -i samples/texture.tex ``` -------------------------------- ### Development: Encode image from source Source: https://github.com/leaguetoolkit/ltk-tex-utils/blob/main/README.md Example of running the 'encode' subcommand for an image file when developing from source. ```bash cargo run -p ltk-tex-utils -- encode samples/albedo.png -f bc3 ``` -------------------------------- ### Install Windows Explorer Thumbnail Handler Source: https://github.com/leaguetoolkit/ltk-tex-utils/blob/main/README.md Installs a thumbnail provider for .tex files in Windows Explorer. Requires administrator privileges and must be run in PowerShell. ```powershell # Run PowerShell as Administrator, then: iwr -useb https://raw.githubusercontent.com/LeagueToolkit/ltk-tex-utils/main/scripts/install-thumbnail-handler.ps1 | iex ``` -------------------------------- ### Development: Decode TEX file from source Source: https://github.com/leaguetoolkit/ltk-tex-utils/blob/main/README.md Example of running the 'decode' subcommand for a TEX file when developing from source. ```bash cargo run -p ltk-tex-utils -- decode samples/texture.tex ``` -------------------------------- ### Encode image to BC3 with default mipmaps Source: https://github.com/leaguetoolkit/ltk-tex-utils/blob/main/README.md Example of encoding a PNG image to BC3 format with default mipmap generation (triangle filter). ```bash ltk-tex-utils encode albedo.png -f bc3 ``` -------------------------------- ### Encode image to BC1 with Lanczos3 mipmap filter Source: https://github.com/leaguetoolkit/ltk-tex-utils/blob/main/README.md Example of encoding a PNG image to BC1 format using the Lanczos3 filter for mipmap generation. ```bash ltk-tex-utils encode mask.png -f bc1 --mipmap-filter lanczos3 ``` -------------------------------- ### Encode image to BGRA8 disabling mipmaps Source: https://github.com/leaguetoolkit/ltk-tex-utils/blob/main/README.md Example of encoding a PNG image to BGRA8 format while explicitly disabling mipmap generation. ```bash ltk-tex-utils encode icon.png -f bgra8 -m false ``` -------------------------------- ### Display ltk-tex-utils top-level help Source: https://github.com/leaguetoolkit/ltk-tex-utils/blob/main/README.md Shows the main help message for the ltk-tex-utils CLI tool. ```bash ltk-tex-utils --help ``` -------------------------------- ### Run ltk-tex-utils from source Source: https://github.com/leaguetoolkit/ltk-tex-utils/blob/main/README.md Executes the ltk-tex-utils tool directly using Cargo, useful for development. The subcommand and options follow the '--'. ```bash cargo run -p ltk-tex-utils -- [options] ``` -------------------------------- ### Inspect TEX file metadata Source: https://github.com/leaguetoolkit/ltk-tex-utils/blob/main/README.md Prints basic metadata such as format, dimensions, and mipmap information for a given TEX file. ```bash ltk-tex-utils info -i path/to/texture.tex ``` -------------------------------- ### Decode TEX file to standard image format Source: https://github.com/leaguetoolkit/ltk-tex-utils/blob/main/README.md Converts a .tex file back into a standard image format. The output format is inferred from the file extension, defaulting to PNG. ```bash ltk-tex-utils decode path/to/input.tex ``` -------------------------------- ### Encode image to TEX format Source: https://github.com/leaguetoolkit/ltk-tex-utils/blob/main/README.md Converts standard image files (PNG, JPG, etc.) into the .tex format. Supports specifying texture format, mipmap generation, and mipmap filters. ```bash ltk-tex-utils encode \ path/to/input.png \ -f \ -m \ --mipmap-filter ``` -------------------------------- ### Uninstall Windows Explorer Thumbnail Handler Source: https://github.com/leaguetoolkit/ltk-tex-utils/blob/main/README.md Uninstalls the .tex thumbnail handler from Windows Explorer. Requires administrator privileges and must be run in PowerShell. ```powershell regsvr32.exe /u "%ProgramFiles%\LeagueToolkit\ltk-tex-thumb-handler\ltk_tex_thumb_handler.dll" ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.