Registry / data / large-image-source-openjpeg

large-image-source-openjpeg

JSON →
library1.34.1pypypi✓ verified 81d ago

An OpenJPEG-based tile source for the large-image library, enabling efficient reading of JPEG2000 (JP2) images. Current version 1.34.1. Release cadence is irregular, tied to the large-image monorepo.

pip install large-image-source-openjpeg
INSTALL
IMPORT
SIG · LARGE-IMAGE-SOURCE
L
large-image-source-openjpeg
datapythonv1.34.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

OpenjpegFileTileSource
from large_image_source_openjpeg import OpenjpegFileTileSource
from large_image_source_openjpeg import OpenjpegTileSource

Open a JP2 file and read its metadata and a tile at level 0.

from large_image_source_openjpeg import OpenjpegTileSource ts = OpenjpegTileSource('path/to/input.jp2') print(ts.getMetadata()) tile = ts.getTile(0, 0, 0) print(tile.shape)
Debug
Known issues
gotchaThe underlying glymur library requires libopenjp2 to be installed on the system. Installing via pip alone will fail if the C library is missing.
fix
Install libopenjp2 via system package manager (e.g., apt install libopenjp2-7, yum install openjpeg2).
affects: all
deprecatedAs of large-image 1.34.0, Python 3.9 support was dropped. This source now requires Python >=3.10.
fix
Upgrade Python to 3.10 or later.
affects: >=1.34.0
gotchaThe source does not support all JP2 features; it may fail on images with certain color spaces or resolution reductions.
fix
Verify the image opens correctly; consider using large-image-source-tiff for more complex cases.
affects: all
Upgrade
Version history
1.34.1latest on PyPI · released Mar 24, 2026
Audit
Dependencies
large-imagerequiredCore framework; this source cannot function without large-image.
glymurrequiredPython binding for OpenJPEG used to decode JP2 files.
libopenjp2requiredC library required by glymur; must be installed separately (system package).
Agent activity
12 hits · last 30 days
node
12
Resources