donmccurdy / glTF-Transform

glTF 2.0 SDK for JavaScript and TypeScript, on Web and Node.js.
https://gltf-transform.dev
MIT License
1.42k stars 150 forks source link

Clean up --formats and --slots inputs for texture compression #1150

Closed donmccurdy closed 1 year ago

donmccurdy commented 1 year ago

Fixes a typo when using the CLI optimize command for KTX2 compression. Extends non-GPU texture compression commands to support WebP and AVIF as input formats. Simplifies syntax:

# before
gltf-transform webp in.glb out.glb --formats "image/png" --lossless

# after
gltf-transform webp in.glb out.glb --formats "png" --lossless