crossbind
GitHub

LERC

v4.2.0Imaging

LERC 4.2.0, limited-error raster compression, packaged by crossbind as @crossbind/port-lerc and one package per target. Only a variant that is actually on npm beta is listed as published.

npm install @crossbind/port-lerc@beta

Packages

TargetPackagenpm `beta`
Meta package@crossbind/port-lerc2.0.0-beta.56
Web and Node.js@crossbind/port-lerc-wasm2.0.0-beta.56
WASI library@crossbind/port-lerc-wasi2.0.0-beta.56
Android@crossbind/port-lerc-android2.0.0-beta.56
iOS@crossbind/port-lerc-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-lerc-wasi, @crossbind/port-lerc-android, @crossbind/port-lerc-ios are published too.

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

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

Licence

  • npm license field of @crossbind/port-lerc: Apache-2.0.
  • 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
cURLExpatGDALGEOSGeoTIFFiconvlibjpeg-turbolibTIFFOpenSSLPROJSpatiaLiteSQLiteWebPzlibZstandard
Type to search every guide page and section.
↑↓ navigate↵ openesc close