API and CLI for compressing images using the ASTC, ETC, ETC2, BCn (DXTn) texture compression standard.
gpu-tex-enc
is a comprehensive Node.js module that provides both an API and a command-line interface (CLI) for compressing images using various texture compression standards including ASTC, ETC, ETC2, and BCn (DXTn). It's designed to cater to the needs of graphics programming, game development, and any applications requiring efficient texture storage and bandwidth optimization.
- Supports multiple compression standards: ASTC, ETC, ETC2, BCn (DXTn).
- Easy-to-use API and CLI for versatile image compression tasks.
- Integrates with
@gpu-tex-enc/astc
,@gpu-tex-enc/bc
, and@gpu-tex-enc/etc
modules.
To install the package, run:
npm install gpu-tex-enc
Require the module in your project:
const gpuTexEnc = require('gpu-tex-enc');
// Example usage of the API
After installation, gputexenc
can be used directly from the command line:
gputexenc [options]
@gpu-tex-enc/astc
: For ASTC compression.@gpu-tex-enc/bc
: For BCn compression.@gpu-tex-enc/etc
: For ETC and ETC2 compression.yargs
: For parsing command-line arguments.sharp
(optional): For additional image processing capabilities.
- Node.js version >= 18.0.0.
Development dependencies include:
@types/node
: TypeScript type definitions for Node.js.
The source code is hosted on GitHub:
github.com/ddenisyuk/gpu-tex-enc
Licensed under the Apache-2.0 License.