texture-converter
Skill2.2k starsChanged 4 months agoMITView on GitHub
Guide for using the texconv command-line texture conversion tool. Use this skill when asked about converting textures, compressing images to DDS/BC formats, generating mipmaps, resizing textures, creating normal maps, or performing HDR tone mapping from the command line.
Trending
Quiet since August.about the whole repository
Who's talking about microsoft/DirectXTex
- woelper/oculante“DDS BC7, cubemaps, volume maps, or texture arrays”GitHub · Mar 6, 2023 · 3 reactions
- aleko2144/KoTR_Modern_Patch“D2GI: Taking screenshots leaks a lot of resources”GitHub · Jan 4, 2026 · 1 reactions
- FlaxEngine/FlaxEngine“Add options to reconstruct z channel for textures.”GitHub · Oct 4, 2024 · 1 reactions
- RimSort/RimSort“Implement texture compression/conversion utilities”GitHub · Feb 21, 2023 · 1 reactions
- vrm-c/vrm-specification“テクスチャ圧縮の検討について”GitHub · Dec 4, 2019 · 1 reactions
The biggest 5 of 30 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 30
Talked about on GitHub (30 times).
On GitHub · 30
- Mar 6, 2023DDS BC7, cubemaps, volume maps, or texture arrays — woelper/oculante3 reactions · 7 comments
- Jan 4, 2026D2GI: Taking screenshots leaks a lot of resources — aleko2144/KoTR_Modern_Patch1 reaction · 10 comments
- Oct 4, 2024Add options to reconstruct z channel for textures. — FlaxEngine/FlaxEngine1 reaction
- Feb 21, 2023Implement texture compression/conversion utilities — RimSort/RimSort1 reaction · 3 comments
- Dec 4, 2019テクスチャ圧縮の検討について — vrm-c/vrm-specification1 reaction · 6 comments
25 more on GitHub
- Aug 30, 2016Resized .dds Texture (BCn format) With Alpha Shows Corrupted Edges — GameTechDev/Intel-Texture-Works-Plugin1 reaction
- Aug 5, 2026Bump deps/DirectXTex from `f06dd7e` to `cd6e576` — Joelrau/x64-zt0 reactions
- Apr 28, 2025FL_IMAGE_PACKER — Facta-Leopard/FL_IMAGE_PACKER0 reactions
- Nov 19, 2024Bump deps/DirectXTex from `e102d0b` to `d095bec` — Antiwoll/mwr0 reactions
- Jun 7, 2024Reading and decoding image files with DirectXTex — dejan-xd/Game_Engine_MBRS0 reactions
- Apr 28, 2023Bump directxtex_desktop_win10 from 2021.1.10.2 to 2023.1.31.1 in /Samples/Desktop/D3D12Raytracing/src/D3D12RaytracingMiniEngineSample — sarvex/DirectxGraphicsSamples0 reactions
- Apr 28, 2023Bump directxtex_desktop_win10 from 2019.2.7.1 to 2023.1.31.1 in /MiniEngine/ModelConverter — sarvex/DirectxGraphicsSamples0 reactions
- Apr 28, 2023Bump directxtex_uwp from 2018.8.5.1 to 2023.1.31.1 in /glTF-Toolkit.UWP — sarvex/glTF-Toolkit0 reactions
- Apr 28, 2023Bump directxtex_desktop_win10 from 2021.1.10.2 to 2023.1.31.1 in /MiniEngine/ModelViewer — sarvex/DirectxGraphicsSamples0 reactions
- Feb 17, 2023Bump deps/DirectXTex from `679538e` to `0f77045` — alicealys/h2-zonetool0 reactions
- Feb 1, 2023Bump directxtex_desktop_win10 from 2021.1.10.2 to 2023.1.31.1 in /MiniEngine/ModelViewer — NOUIY/DirectX-Graphics-Samples0 reactions
- Feb 1, 2023Bump directxtex_desktop_win10 from 2019.8.23.1 to 2023.1.31.1 in /Engine — DznEggs4Keira/Engine5020 reactions
- Feb 1, 2023Bump directxtex_desktop_win10 from 2021.1.10.2 to 2023.1.31.1 in /MiniEngine/ModelViewer — bl1mp/DirectX-Graphics-Samples0 reactions
- Feb 1, 2023Bump directxtex_desktop_win10 from 2019.2.7.1 to 2023.1.31.1 in /MiniEngine/ModelConverter — NOUIY/DirectX-Graphics-Samples0 reactions
- Feb 1, 2023Bump directxtex_desktop_win10 from 2019.2.7.1 to 2023.1.31.1 in /MiniEngine/ModelConverter — bl1mp/DirectX-Graphics-Samples0 reactions
- Feb 1, 2023Bump directxtex_desktop_win10 from 2019.8.23.1 to 2023.1.31.1 in /EpionNodeShaderTool — 13treize/EpionNodeEditorProject0 reactions
- Feb 1, 2023Bump directxtex_desktop_win10 from 2019.8.23.1 to 2023.1.31.1 in /NodeDataLib — 13treize/EpionNodeEditorProject0 reactions
- Feb 1, 2023Bump directxtex_desktop_win10 from 2019.8.23.1 to 2023.1.31.1 in /AliceGames/AliceLibrary — kaosu7201/AliceGames0 reactions
- Feb 1, 2023Bump directxtex_desktop_win10 from 2020.9.30.1 to 2023.1.31.1 — 13treize/Epion-Graphics0 reactions
- Feb 1, 2023Bump directxtex_desktop_win10 from 2018.11.20.1 to 2023.1.31.1 in /ElixirEngine — nitvic793/dx12-engine-elixir0 reactions
- Feb 1, 2023Bump directxtex_uwp from 2022.12.18.1 to 2023.1.31.1 in /UnitTests — 13thsymphony/HDRImageViewer0 reactions
- Feb 1, 2023Bump directxtex_uwp from 2022.12.18.1 to 2023.1.31.1 in /DXRenderer — 13thsymphony/HDRImageViewer0 reactions
- Oct 14, 2021[PROPOSAL] Add bindings for DirectXTex — terrafx/terrafx.interop.windows0 reactions
- Oct 16, 2020[REQ] Allow importing of BC7 .dds textures — monkeyman192/NMSDK0 reactions
- Apr 12, 2019Roundtrip Texture Files — kk49/deca0 reactions · 5 comments
In this repository4 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- Release ProcessSkill
- directxtex-usageSkill
- texture-assemblerSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 149
When no size is specified (-w / -h), the output size matches the input.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Texconv Texture Converter
This skill provides guidance for using the texconv command-line tool to convert, compress, resize, and process texture images.
When to Use
Invoke this skill when:
- Converting image files (PNG, BMP, JPG, TGA, HDR, etc.) to DDS or other formats.
- Applying block compression (BC1–BC7) to textures for runtime use.
- Generating mipmaps for texture files.
- Resizing textures or fitting them to power-of-2 dimensions.
- Creating normal maps from height maps.
- Performing HDR tone mapping or colorspace conversions.
- Batch-processing texture files using wildcards or file lists.
Installation
winget (Recommended)
winget install Microsoft.DirectXTex.Texconvvcpkg
vcpkg install directxtex[tools]Syntax
texconv [options] [--file-list <filename>] <file-name(s)>Input files can be dds, tga, hdr, phm, ppm, pfm, or any WIC-supported format (bmp, jpg, png, jxr, heif, webp, etc.).
The command-line uses Windows-style - or / for options. It also supports --version, --help, and GNU long-option style parameters with --.
Common Workflows
Convert to BC7 compressed DDS with mipmaps
texconv -f BC7_UNORM -m 0 -y diffuse.pngConvert to BC1 (DXT1) with power-of-2 resize
texconv -pow2 -f BC1_UNORM cat.jpgBatch convert all PNG files recursively
texconv -r C:\Textures\*.pngConvert HDR to BMP with tone mapping
texconv myimage.hdr -tonemap -ft BMPGenerate normal map from height map
texconv -nmap lo -nmapamp 2 -f R8G8B8A8_UNORM heightmap.pngConvert for legacy Direct3D 9 with feature level cap
texconv -pow2 -fl 9.3 -f BC3_UNORM -m 1 *.bmpOutput to a specific directory with prefix/suffix
texconv -o output_dir -px hd_ -sx _bc7 -f BC7_UNORM *.pngConvert to PNG from DDS
texconv -ft png -y texture.ddsPremultiplied alpha conversion
texconv -pmalpha -f BC3_UNORM ui_element.pngHDR10 colorspace conversion
texconv --rotate-color 709toHDR10 -nits 200 -f R10G10B10A2_UNORM scene.hdrSwizzle channels
texconv --swizzle rrrg -f BC5_UNORM normal.pngOptions Reference
See reference/options.md for the complete options reference.
Quick Reference (most common options)
| Option | Description |
-f <format> | Output DXGI format (e.g., BC7_UNORM, R8G8B8A8_UNORM) |
-ft <type> | Output file type (dds, png, bmp, jpg, tga, hdr, etc.) |
-o <dir> | Output directory |
-y | Overwrite existing files |
-m <n> | Mipmap levels (0 = full chain, 1 = none) |
-w <n> / -h <n> | Output width / height in pixels |
-pow2 | Fit to power-of-2 dimensions |
-if <filter> | Image filter (POINT, LINEAR, CUBIC, FANT, BOX, TRIANGLE) |
-srgb | Input and output are sRGB |
-pmalpha | Convert to premultiplied alpha |
-bc <flags> | BC compression flags (u, d, q, x) |
-nmap <flags> | Generate normal map from height map |
-r | Recursive wildcard search |
-nologo | Suppress copyright message |
Output Format
By default, texconv writes DDS files. The output filename matches the input filename with the appropriate extension. Use -ft to change the output format, -o for output directory, and -px/-sx for filename prefix/suffix.
Notes
- When no size is specified (
-w/-h), the output size matches the input. - DDS output defaults to generating all mipmap levels (
-m 0). Use-m 1to suppress mipmaps. - BC6H and BC7 compression uses GPU acceleration by default when available. Use
-nogputo force CPU. - For cubemaps, volume maps, or texture arrays from individual files, use texassemble instead.
- Support for OpenEXR (
exr) format requires building from source withUSE_OPENEXRdefined. - Additional WIC codecs (HEIF, WEBP) work automatically if installed on the system.
Further Reading
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

