ktx2-encoder
TypeScript icon, indicating that this package has built-in type declarations

0.0.0-experimental.5 • Public • Published

ktx-encoder

Latest NPM release License

This is a simple tool to convert images to KTX2(.ktx2) format. Ported from BinomialLLC/basis_universal.

Quick Start

Install:

npm install --save ktx-encoder

Import:

import { encodeKTX2, encodeKTX2Cube, release } from 'ktx-encoder';

Usage:

// encode a 2D image
encodeKTX2(data /** ArrayBuffer of png */, options);
// encode a cube map
encodeKTX2Cube([data, ...] /** ArrayBuffer of png */, options);

See options API documentation for more details.

Tool

  1. Start server
npm run dev
  1. Open the page,default is http://localhost:5174/

  2. Use it! Select your images and encode it to ktx2lock

Package Sidebar

Install

npm i ktx2-encoder

Weekly Downloads

35

Version

0.0.0-experimental.5

License

MIT

Unpacked Size

1.78 MB

Total Files

20

Last publish

Collaborators

  • husong