lzw-tiff-decoder
一个基于WASM的LZW为tiff图像解码器. 用途 weezl页:1
纯安全和无依赖性的碎屑箱提供LZW解码.
整个捆绑大小是 15kb (英语)。 。 。 .
安装
npm install @developmentseed/lzw-tiff-decoder
使用量
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);
发展
npm install
npm run build
发布
npm publish