# @gpu-tex-enc/astc

> Compressing images using the ASTC texture compression standard.

Latest version **4.7.1** (published 2024-09-04) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @gpu-tex-enc/astc
pnpm add @gpu-tex-enc/astc
yarn add @gpu-tex-enc/astc
bun add @gpu-tex-enc/astc
```

Provides the commands `astcenc-linux-x64-avx2`, `astcenc-linux-x64-sse2`, `astcenc-win32-x64-avx2`, `astcenc-win32-x64-sse2`, `astcenc-darwin-x64-avx2`, `astcenc-darwin-x64-sse2`, `astcenc-linux-x64-sse4.1`, `astcenc-win32-arm64-avx2`, `astcenc-win32-arm64-sse2`, `astcenc-win32-x64-sse4.1`, `astcenc-darwin-arm64-avx2`, `astcenc-darwin-arm64-sse2`, `astcenc-darwin-x64-sse4.1`, `astcenc-win32-arm64-sse4.1`, `astcenc-darwin-arm64-sse4.1`.

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; large bundle.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.7.1 |
| Published | 2024-09-04 |
| First published | 2023-12-02 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 17.3 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12 |
| Author | Denys Denysiuk |
| Maintainers | ddenisyuk |
| Keywords | compression, image-compression, astc, astcenc, GPUTexEncoder |

## Links

- npm: https://www.npmjs.com/package/@gpu-tex-enc/astc
- Repository: https://github.com/ddenisyuk/gpu-tex-enc
- Homepage: https://github.com/ddenisyuk/gpu-tex-enc#readme
- Issues: https://github.com/ddenisyuk/gpu-tex-enc/issues
- npm.io page: https://npm.io/package/@gpu-tex-enc/astc

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads
- [datasets-fi-postalcodes](https://npm.io/package/datasets-fi-postalcodes.md) — 1.1K weekly downloads

## Recent versions

- 4.7.1 (latest) — 2024-09-04
- 4.7.0 — 2024-02-15
- 4.6.1 — 2023-12-02

## README

# @gpu-tex-enc/astc

Compressing images using the ASTC texture compression standard.

[astcenc](https://github.com/ARM-software/astc-encoder) v4.6.1

## Description

This module provides a Node.js interface for compressing images into ASTC format, an efficient texture compression standard suited for GPU textures. It wraps various `astcenc` binaries for different platforms and CPU architectures, ensuring broad compatibility and performance.

## Features

- Supports multiple CPU architectures and operating systems.
- Easy integration with Node.js projects.
- Utilizes the latest [astcenc](https://github.com/ARM-software/astc-encoder) binaries for optimal compression.

## Installation

Install the module via npm:

```bash
npm install @gpu-tex-enc/astc
```

## Usage

To use this module, require it in your Node.js project:

```javascript
const astc = require('@gpu-tex-enc/astc');

// Example usage here...
```

## Binaries

The package includes pre-compiled [astcenc](https://github.com/ARM-software/astc-encoder) binaries for the following platforms and architectures:

- Linux (x64) - AVX2, SSE2, SSE4.1
- Windows (x64, ARM64) - AVX2, SSE2, SSE4.1
- Darwin (x64, ARM64) - AVX2, SSE2, SSE4.1

## Dependencies

- `cpu-features`: To determine the best binary for your CPU.

## Repository

The source code is available on GitHub:

[github.com/ddenisyuk/gpu-tex-enc](https://github.com/ddenisyuk/gpu-tex-enc)

## License

This project is licensed under the Apache-2.0 License.

---
_Source: https://npm.io/package/@gpu-tex-enc/astc · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
