@catlabtech/webcvt-image-legacy
Pure TypeScript decoders and encoders for legacy and scientific image formats not supported by the browser Canvas API.
Installation
bash
npm i @catlabtech/webcvt-image-legacySupported formats
PBM, PGM, PPM (Netpbm), PFM, QOI, XBM, PCX, XPM, TIFF, ICNS, TGA, and more.
API
Detailed API reference coming in v0.2. See the source code for now.
Notes
All codecs are implemented in pure TypeScript with no WASM. Register this backend alongside @catlabtech/webcvt-image-canvas to expand the range of supported input formats:
ts
import { CanvasBackend } from '@catlabtech/webcvt-image-canvas';
import { LegacyImageBackend } from '@catlabtech/webcvt-image-legacy';
import { defaultRegistry } from '@catlabtech/webcvt-core';
defaultRegistry.register(new CanvasBackend());
defaultRegistry.register(new LegacyImageBackend());