liblerc
brew install liblerc
v4.1.0
Apache-2.0
C++ shared library for rapid encoding and decoding of raster images using LERC (Limited Error Raster Compression) format with user-defined error bounds.
Why you might care
LERC is a specialized raster compression format that preserves image precision within user-defined error tolerances, making it ideal for geospatial and scientific imagery where lossy compression with bounded error is acceptable. It supports any pixel type (not just RGB/Byte) and is significantly faster than general-purpose image codecs for raster data. Primary use is as a dependency for geospatial tools and image processing pipelines that need efficient raster storage.
Build dependencies
GitHub topics
Links
- https://github.com/Esri/lerc
- GitHub: Esri/lerc
- Brew formula source: Formula/lib/liblerc.rb
Blurb generated by claude-haiku-4-5 on today.
Raw metadata
{
"aliases": [],
"alternatives": [
"libjpeg",
"libpng",
"zlib",
"GeoTIFF"
],
"build_dependencies": [
"cmake"
],
"categories": [
"library",
"compression",
"image-tool",
"geospatial"
],
"caveats": null,
"conflicts_with": [],
"dependencies": [],
"deprecated": 0,
"deprecation_reason": null,
"desc": "Esri LERC library (Limited Error Raster Compression)",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:41:06+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "liblerc",
"github_default_branch": "master",
"github_last_commit_at": "2026-06-10T17:53:00Z",
"github_readme_excerpt": "# LERC - Limited Error Raster Compression\n\n## What is LERC?\n\nLERC is an open-source image or raster format which supports rapid encoding and decoding for any pixel type (not just RGB or Byte). Users set the maximum compression error per pixel while encoding, so the precision of the original input image is preserved (within user defined error bounds).\n\nThis repository contains a C++ library for both encoding and decoding images. You can also do this directly from Python. And we have decoders for JavaScript and C#.\n\n## The LERC C API\n\nFunction | Description\n--- | ---\n`uint lerc_computeCompressedSize(...)` | Computes the buffer size that needs to be allocated so the image can be Lerc compressed into that buffer. The size is accurate to the byte. This function is optional. It is faster than `lerc_encode(...)`. It can also be called to decide whether an image or image tile should be encoded by Lerc or another method.\n`uint lerc_encode(...)` | Compresses a given image into a pre-allocated buffer. If that buffer is too small, the function fails with the corresponding error code. The function also returns the number of bytes written.\n`uint lerc_getBlobInfo(...)` | Looks into a given Lerc byte blob and returns an array with all the header info. From this, the image to be decoded can be allocated and constructed. This function is optional. You don\u0027t need to call it if you already know the image properties such as tile size and data type.\n`uint lerc_getDataRanges(...)` | Looks into a given Lerc byte blob and returns 2 double arrays with the minimum and maximum values per band and depth. This function is optional. It allows fast access to the data ranges without having to decode the pixels.\n`uint lerc_decode(...)` | Uncompresses a given Lerc byte blob into a pre-allocated image. If the data found in the Lerc byte blob does not fit the specified image properties, the function fails with the corresponding error code.\n`uint lerc_decodeToDouble(...)` | Uncompresses a given Lerc byt",
"github_repo": "Esri/lerc",
"github_stars": 208,
"github_topics": [
"band",
"c-plus-plus",
"c-sharp",
"compression",
"data-management",
"decoding",
"decoding-images",
"encoding",
"image",
"image-compression",
"image-compressor",
"image-processing",
"imagery",
"javascript",
"lerc-byte-blob",
"native-development",
"pixel",
"python",
"raster",
"raster-compression"
],
"homepage": "https://github.com/Esri/lerc",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": null,
"installs_30d": 3071,
"installs_365d": 35272,
"installs_90d": 10352,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "Apache-2.0",
"llm_generated_at": "2026-06-20T23:47:04+00:00",
"llm_model": "claude-haiku-4-5",
"name": "liblerc",
"oldnames": [],
"one_liner": "C++ shared library for rapid encoding and decoding of raster images using LERC (Limited Error Raster Compression) format with user-defined error bounds.",
"optional_dependencies": [],
"rank_30d": 788,
"rank_365d": 815,
"rank_90d": 798,
"raw_hash": "3fc8e7270a012a35",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/lib/liblerc.rb",
"tap": "homebrew/core",
"test_dependencies": [],
"uses_from_macos": [],
"version_head": null,
"version_stable": "4.1.0",
"versioned_formulae": [],
"why_use_this": "LERC is a specialized raster compression format that preserves image precision within user-defined error tolerances, making it ideal for geospatial and scientific imagery where lossy compression with bounded error is acceptable. It supports any pixel type (not just RGB/Byte) and is significantly faster than general-purpose image codecs for raster data. Primary use is as a dependency for geospatial tools and image processing pipelines that need efficient raster storage."
}