donmccurdy/glTF-Transform

CLI 'etc1s' and 'uastc' commands should expose --resize flag

Open

#1,776 opened on Dec 5, 2025

View on GitHub
 (0 comments) (3 reactions) (0 assignees)TypeScript (196 forks)auto 404
featuregood first issuehelp wantedpackage:cli

Repository metrics

Stars
 (1,922 stars)
PR merge metrics
 (PR metrics pending)

Description

When running the 'optimize' CLI command with KTX2 compression enabled by the --texture-compress flag, texture resizing (if enabled by --resize) happens automatically within the toktx() calls. When running the etc1s or uastc commands separately, --resize isn't currently exposed, and so you'd need to call the resize function separately.

My intention is that 'optimize' be an easy-to-use, simplified, and opinionated pipeline composed of parts from @gltf-transform/functions, and that it's possible — when those simplifications and opinions aren't a good fit for a particular user — to drop down into composing the more configurable and more advanced commands and functions underneath it.

That being the case, the etc1s and uastc commands should expose all features that they offer through the optimize command, and --resize is currently missing.

Contributor guide