# gl-dds

> Parse DDS images

Latest version **0.1.0** (published 2018-01-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install gl-dds
pnpm add gl-dds
yarn add gl-dds
bun add gl-dds
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2018-01-06 |
| First published | 2018-01-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Tim Knip |
| Maintainers | timknip |
| Keywords | dds, texture, gl, opengl |

## Links

- npm: https://www.npmjs.com/package/gl-dds
- Repository: https://github.com/timknip/gl-dds
- Homepage: https://github.com/timknip/gl-dds#readme
- Issues: https://github.com/timknip/gl-dds/issues
- npm.io page: https://npm.io/package/gl-dds

## Recent versions

- 0.1.0 (latest) — 2018-01-06

## README

## gl-dds

Parse DDS images.

The library has a single method ```parse``` which takes a ArrayBuffer and
returns an object describing the DDS data.

Example of the returned object:

```javascript
{ width: 4,
  height: 4,
  depth: 0,
  levels: 3,
  faces: 0,
  format: 33777,
  internal_format: 33777,
  type: 33777,
  bytesPerElement: 8,
  compressed: true,
  parts:
   [ { offset: 128, size: 8 },
     { offset: 136, size: 8 },
     { offset: 144, size: 8 } ],
  parts_count: 3 }
```

### install

    npm i gl-dds

### usage

```javascript

import fs from 'fs';
import * as dds from 'gl-dds';

let buffer = fs.readFileSync('foo.dds');

let descriptor = dds.parse(buffer);

```

---
_Source: https://npm.io/package/gl-dds · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
