Skip to content

API and CLI for compressing images using the ASTC, ETC, ETC2, BCn (DXTn), BasisU texture compression standard.

License

Notifications You must be signed in to change notification settings

ddenisyuk/gpu-tex-enc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gpu-tex-enc

API and CLI for compressing images using the ASTC, ETC, ETC2, BCn (DXTn) and Basis supercompressed (ETC1S, UASTC) texture compression standard.

Description

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, BCn (DXTn), ETC1S, UASTC. It's designed to cater to the needs of graphics programming, game development, and any applications requiring efficient texture storage and bandwidth optimization.

Features

  • Supports multiple compression standards: ASTC, ETC, ETC2, BCn (DXTn), UASTC, ETC1S.
  • Easy-to-use API and CLI for versatile image compression tasks.
  • Integrates with @gpu-tex-enc/astc, @gpu-tex-enc/bc, @gpu-tex-enc/etc and @gpu-tex-enc/basis modules.

Installation

To install the package, run:

npm install gpu-tex-enc

Usage

As a Node.js Module

Require the module in your project:

const gpuTexEnc = require('gpu-tex-enc');

// Example usage of the API

As a CLI Tool

After installation, gputexenc can be used directly from the command line:

gputexenc [options]

Dependencies

  • @gpu-tex-enc/astc: For ASTC compression.
  • @gpu-tex-enc/bc: For BCn compression.
  • @gpu-tex-enc/etc: For ETC and ETC2 compression.
  • @gpu-tex-enc/basis: For ETC1S and UASTC Basis supercompressed textures.
  • sharp (optional): For additional image processing capabilities.

Requirements

  • Node.js version >= 18.0.0.

Repository

The source code is hosted on GitHub:

github.com/ddenisyuk/gpu-tex-enc

License

Licensed under the Apache-2.0 License.

About

API and CLI for compressing images using the ASTC, ETC, ETC2, BCn (DXTn), BasisU texture compression standard.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published