crossbind
GitHub

libTIFF

v4.7.2Imaging

libTIFF 4.7.2, tIFF image reader and writer, packaged by crossbind as @crossbind/port-tiff and one package per target. Only a variant that is actually on npm beta is listed as published.

npm install @crossbind/port-tiff@beta

Packages

TargetPackagenpm `beta`
Meta package@crossbind/port-tiff2.0.0-beta.56
Web and Node.js@crossbind/port-tiff-wasm2.0.0-beta.56
WASI library@crossbind/port-tiff-wasi2.0.0-beta.56
WASI commands@crossbind/port-tiff-bin-wasi2.0.0-beta.56
Android@crossbind/port-tiff-android2.0.0-beta.56
iOS@crossbind/port-tiff-ios2.0.0-beta.56

Install

Install the variant for the platform you build, declare it as a dependency in crossbind.config.js and import the header from JavaScript. Nothing is compiled on your machine. A project that builds for several platforms lists one variant per platform: @crossbind/port-tiff-wasi, @crossbind/port-tiff-android, @crossbind/port-tiff-ios are published too.

shell
npm install @crossbind/port-tiff-wasm@beta
crossbind.config.js
import tiffWasm from '@crossbind/port-tiff-wasm/crossbind.config.js';
 
export default {
dependencies: [tiffWasm],
paths: { config: import.meta.url },
};

Header import paths are relative to the package's dist/prebuilt/<target>/include, so @crossbind/port-tiff/<header>.h is upstream's own header. The full flow, including what the meta package is for, is in the Libraries guide.

WASI command tools

18 upstream commands ship as npm executables built for wasm32-wasip3. They need wasmtime on PATH and no compiler - see WASI commands.

shell
npm install --global @crossbind/port-tiff-bin-wasi@beta
fax2ps-wasi --help
  • fax2ps-wasi
  • fax2tiff-wasi
  • pal2rgb-wasi
  • ppm2tiff-wasi
  • raw2tiff-wasi
  • tiff2bw-wasi
  • tiff2pdf-wasi
  • tiff2ps-wasi
  • tiff2rgba-wasi
  • tiffcmp-wasi
  • tiffcp-wasi
  • tiffcrop-wasi
  • tiffdither-wasi
  • tiffdump-wasi
  • tiffinfo-wasi
  • tiffmedian-wasi
  • tiffset-wasi
  • tiffsplit-wasi

Licence

  • npm license field of @crossbind/port-tiff: libtiff.
  • The -bin-wasi package lists every statically linked component in its own license field, which is longer than the library licence above.
  • The licence files that ship with the package, and the port recipe, are in the port directory.

Facts on this page come from the port manifests in the repository and from what npm served on beta when the site was built. See the Libraries guide for the full consumer flow.

MORE LIBRARIES
cURLExpatGDALGEOSGeoTIFFiconvLERClibjpeg-turboOpenSSLPROJSpatiaLiteSQLiteWebPzlibZstandard
Type to search every guide page and section.
↑↓ navigate↵ openesc close