@developmentseed/lzw-tiff-decoder
v0.2.2
Published
WASM LZW decoder for TIFF images.
Downloads
1,471
Readme
lzw-tiff-decoder
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-decoderUsage
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 buildPublish
npm publish