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.
When running the 'optimize' CLI command with KTX2 compression enabled by the
--texture-compressflag, texture resizing (if enabled by--resize) happens automatically within the toktx() calls. When running theetc1soruastccommands separately,--resizeisn't currently exposed, and so you'd need to call theresizefunction 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
etc1sanduastccommands should expose all features that they offer through theoptimizecommand, and--resizeis currently missing.