Registry / data / glymur

glymur

JSON →
library0.14.8pypypiunverified

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 glymur
INSTALL
IMPORT
SIG · GLYMUR
G
glymur
datapythonv0.14.8
Install
4.9s avg
Import
435ms
Disk
125MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v0.14.0.post1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.100s · 127.2MB
glibc
py 3.10–3.95 runs
installs and imports cleanly · install 4.9s · import 0.074s · 124MB
125MB installed
● package 125MB
Code
Verified usage

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

glymur
✓ import glymur
✗ import glymur

Read and write JPEG 2000 images with glymur.

import glymur # Open a JPEG 2000 file jp2 = glymur.Jp2k('input.jp2') print('Shape:', jp2.shape) print('Image data:', jp2[:]) # Write a JPEG 2000 file import numpy as np data = np.random.randint(0, 256, (256, 256), dtype=np.uint8) glymur.Jp2k('output.jp2', data=data) # or use jp2.write(data)
Debug
Known issues
breakingVersion 0.14 dropped support for Python 3.9 and 3.10. Requires Python >=3.11.
fix
Upgrade Python to 3.11 or later.
affects: 0.14+
breakingIn 0.14, the 'crat' and 'cdef' family of attributes were removed from Codestream. Use 'compression_ratios' and 'color_space' instead.
fix
Replace jp2.codestream.crat with jp2.codestream.compression_ratios and jp2.codestream.cdef with jp2.codestream.color_space.
affects: 0.14+
gotchaglymur relies on OpenJPEG system library; missing or incompatible libopenjp2 can cause ImportError or silent failures.
fix
Install OpenJPEG via system package manager or conda (e.g., conda install -c conda-forge openjpeg).
affects: all
gotchaJp2k object indexing returns a view, not a copy; modifying the slice modifies the underlying data in place.
fix
Use .copy() if you need a separate array.
affects: all
deprecatedThe glymur.Jp2k.read() method is deprecated in favor of direct indexing (jp2[:]) or waveform reading.
fix
Use jp2[:] to read full image data.
affects: 0.10+
Upgrade
Version history
0.14.8latest on PyPI · released May 13, 2026
Audit
Dependencies
numpyrequiredArray operations for image data
packagingrequiredVersion parsing utilities
Agent activity
29 hits · last 30 days
node
28
Resources
glymur — pip install glymur · libregistry