microsoft/directxtex/texture-converter

Claude Code and agent skill by microsoft/directxtex

Trust tier 4
  • vendor
Source check pending

Checking that the SKILL.md file is still in the repository.

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.

Install

npx vskill@latest install microsoft/directxtex/texture-converter

SKILL.md

The same SKILL.md was published earlier as microsoft/directxtex/texture-converter.

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)
bash
winget install Microsoft.DirectXTex.Texconv
vcpkg
bash
vcpkg install directxtex[tools]

Syntax

plaintext
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
plaintext
texconv -f BC7_UNORM -m 0 -y diffuse.png
Convert to BC1 (DXT1) with power-of-2 resize
plaintext
texconv -pow2 -f BC1_UNORM cat.jpg
Batch convert all PNG files recursively
plaintext
texconv -r C:\Textures\*.png
Convert HDR to BMP with tone mapping
plaintext
texconv myimage.hdr -tonemap -ft BMP
Generate normal map from height map
plaintext
texconv -nmap lo -nmapamp 2 -f R8G8B8A8_UNORM heightmap.png
Convert for legacy Direct3D 9 with feature level cap
plaintext
texconv -pow2 -fl 9.3 -f BC3_UNORM -m 1 *.bmp
Output to a specific directory with prefix/suffix
plaintext
texconv -o output_dir -px hd_ -sx _bc7 -f BC7_UNORM *.png
Convert to PNG from DDS
plaintext
texconv -ft png -y texture.dds
Premultiplied alpha conversion
plaintext
texconv -pmalpha -f BC3_UNORM ui_element.png
HDR10 colorspace conversion
plaintext
texconv --rotate-color 709toHDR10 -nits 200 -f R10G10B10A2_UNORM scene.hdr
Swizzle channels
plaintext
texconv --swizzle rrrg -f BC5_UNORM normal.png

Options Reference

See reference/options.md for the complete options reference.

Quick Reference (most common options)
OptionDescription
-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
-yOverwrite existing files
-m <n>Mipmap levels (0 = full chain, 1 = none)
-w <n> / -h <n>Output width / height in pixels
-pow2Fit to power-of-2 dimensions
-if <filter>Image filter (POINT, LINEAR, CUBIC, FANT, BOX, TRIANGLE)
-srgbInput and output are sRGB
-pmalphaConvert to premultiplied alpha
-bc <flags>BC compression flags (u, d, q, x)
-nmap <flags>Generate normal map from height map
-rRecursive wildcard search
-nologoSuppress 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 1 to suppress mipmaps.
  • BC6H and BC7 compression uses GPU acceleration by default when available. Use -nogpu to force CPU.
  • For cubemaps, volume maps, or texture arrays from individual files, use texassemble instead.
  • Support for OpenEXR (exr) format requires building from source with USE_OPENEXR defined.
  • Additional WIC codecs (HEIF, WEBP) work automatically if installed on the system.

Further Reading

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 17 Aug 2026.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
2,138
Repository forks
492
7-day trend score
38

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill CERTIFIED badge
[![vskill CERTIFIED](https://verified-skill.com/api/v1/skills/microsoft/directxtex/texture-converter/badge)](https://verified-skill.com/skills/microsoft/directxtex/texture-converter)

Something wrong with this skill or its page? Tell us.