agentleFS
MicrosoftKnown publishermicrosoft/DirectXTex/skills/texture-converter/SKILL.md

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

Dec 2025: 0 mentionsJan 2026: 1 mentionFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 1 mentionSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the microsoft/DirectXTex repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about microsoft/DirectXTex

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

25 more on GitHub

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
  1. Very specific:

    When no size is specified (-w / -h), the output size matches the input.

    line 149

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.Texconv

vcpkg

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.png

Convert to BC1 (DXT1) with power-of-2 resize

texconv -pow2 -f BC1_UNORM cat.jpg

Batch convert all PNG files recursively

texconv -r C:\Textures\*.png

Convert HDR to BMP with tone mapping

texconv myimage.hdr -tonemap -ft BMP

Generate normal map from height map

texconv -nmap lo -nmapamp 2 -f R8G8B8A8_UNORM heightmap.png

Convert for legacy Direct3D 9 with feature level cap

texconv -pow2 -fl 9.3 -f BC3_UNORM -m 1 *.bmp

Output to a specific directory with prefix/suffix

texconv -o output_dir -px hd_ -sx _bc7 -f BC7_UNORM *.png

Convert to PNG from DDS

texconv -ft png -y texture.dds

Premultiplied alpha conversion

texconv -pmalpha -f BC3_UNORM ui_element.png

HDR10 colorspace conversion

texconv --rotate-color 709toHDR10 -nits 200 -f R10G10B10A2_UNORM scene.hdr

Swizzle channels

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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.