Python library for reading and writing JPEG 2000 files, wrapping the OpenJPEG library. Current version 0.14.7, requires Python >=3.11, release cadence irregular.
pip install glymurVerified import paths — ran on the pinned version, not inferred.
Read and write JPEG 2000 images with glymur.
Upgrade Python to 3.11 or later.
Replace jp2.codestream.crat with jp2.codestream.compression_ratios and jp2.codestream.cdef with jp2.codestream.color_space.
Install OpenJPEG via system package manager or conda (e.g., conda install -c conda-forge openjpeg).
Use .copy() if you need a separate array.
Use jp2[:] to read full image data.