Skip to content

About

A WASM-based decoder for TIFF LZW compression.

Resources

Code of conduct

Security policy

Stars

2 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

22 Commits

Folders and files

Repository files navigation

lzw-tiff-decoder

npm version

A WASM-based LZW decoder for tiff images. Uses weezl, a purely safe and dependency-less Rust crate providing LZW decoding.

The full bundle size is 15kb.

Installation

npm install @developmentseed/lzw-tiff-decoder

Usage

import { decompress } from '@developmentseed/lzw-tiff-decoder';

const compressedBytes = new Uint8Array(/* tile or strip from tiff */);
const maxUncompressedSize = tileWidth * tileHeight * bitsPerSample / 8;

const decoded = await decompress(compressedBytes, maxUncompressedSize);

Development

npm install
npm run build

Publish

npm publish

About

A WASM-based decoder for TIFF LZW compression.

Resources

Code of conduct

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages