NVIDIA native runtime libraries for JPEG 2000 encoding and decoding using GPU acceleration via CUDA 12. The current version is 0.10.0.49, requires Python >=3. It provides a Python wrapper around the nvJPEG2000 library. Release cadence is linked to NVIDIA driver updates.
pip install nvidia-nvjpeg2k-cu12No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic JPEG2000 decode and encode operations using numpy arrays.
Verify with `nvidia-smi` that CUDA version >=12.0 and a supported GPU are present.
Use `from nvidia import nvjpeg2k` instead of `import nvjpeg2k`.
Always read file as binary (`open(path, 'rb').read()`) or use bytes object.
Wrap decoder usage in `with Jpeg2kDecoder() as decoder:` if available; otherwise call `decoder.destroy()` after use.
Use `from nvidia import nvjpeg2k` or `from nvidia.nvjpeg2k import Jpeg2kDecoder`.
Ensure image is a numpy array of uint8, uint16, or float32, and dimensions are multiples of 1 (check encoder docs for specific constraints). For quality, use integer 0-100.
Reduce image size or use a GPU with more memory. Alternatively, decode in strips if supported.