$npx skillfedfor your agent

pylibjpeg-openjpeg

A Python wrapper for openjpeg, with a focus on use as a plugin for for pylibjpeg

With conditionsPyPI LibrariesReleased Aug 2025225.1K downloads / moMITPlatform wheel

Decision gist · record as of 2026-08-14

platform wheels — pylibjpeg_openjpeg-2.5.0-cp310-cp310-macosx_10_9_x86_64.whl · pylibjpeg_openjpeg-2.5.0-cp310-cp310-macosx_11_0_arm64.whl · pylibjpeg_openjpeg-2.5.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
v2.5.0 · released 2025-08-19 · Python <4.0,>=3.9 · 1 runtime deps: numpy

Yes, if you need JPEG 2000 codec support in Python—particularly for DICOM workflows via pydicom. The package is actively maintained, has no known vulnerabilities, uses a permissive MIT license, and offers prebuilt wheels for most platforms. Install friction is moderate due to compiled dependencies, but wheels eliminate build requirements for standard environments. Not necessary if you only work with standard JPEG or PNG formats.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires NumPy; building from source requires Python 3.9+, CMake, Git, and a C++ compiler (Microsoft Build Tools on Windows).
  • Medium install friction due to compiled wheels; prebuilt binaries available for Python 3.10, 3.11, 3.12, and 3.13 on Linux, macOS (x86_64 and ARM64), and Windows.
  • Building from source requires CMake and a C++ compiler.

License · maintenance · safety

MIT (permissive) — MIT license (permissive); no restrictions on commercial or private use, modification, or redistribution as long as the license and copyright notice are included.

last release 2025-08-19 (360 days) · last repo commit 2026-04-02 · 21 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 225,091 downloads/mo, #9,228 on PyPI

Verify before relying

import numpy as np
from openjpeg import decode, encode_array

# Decode a JPEG 2000 file
arr = decode('filename.j2k')

# Encode a NumPy array
data = np.random.randint(0, 65536, (100, 100, 3), dtype='uint8')
encode_array(data, photometric_interpretation=1)
  • Performance characteristics for large images or batch processing workflows.
  • Whether lossy encoding quality settings are well-documented or require trial-and-error tuning.
  • Integration maturity with current pydicom versions and DICOM transfer syntax support coverage.
Same gist for agents: .md · .json

What it is and what it does

pylibjpeg-openjpeg is a Python wrapper around the OpenJPEG library that adds JPEG 2000 image codec support to Python. It can decode JPEG 2000 files (including High-Throughput variants) into NumPy arrays and encode NumPy arrays back into JPEG 2000 format with both lossless and lossy compression options. The package is designed primarily as a plugin for pylibjpeg, which integrates it into pydicom workflows for reading DICOM files compressed with JPEG 2000 codecs, but it also works standalone for direct image encoding and decoding.

The package supports a range of NumPy dtypes (bool, int8, uint8, int16, uint16, int32, uint32) and array shapes (grayscale, RGB, and 4-channel), with configurable compression via compression ratios or peak signal-to-noise ratios for lossy encoding. Installation uses prebuilt wheels for common platforms and Python versions, though building from source requires CMake and a C++ compiler.

Use it for

  • Decompress JPEG 2000–encoded DICOM medical images in pydicom workflows without external tools.
  • Batch convert JPEG 2000 image files to NumPy arrays for scientific or medical image analysis.
  • Encode medical or scientific imaging data to lossless JPEG 2000 for archival or transmission.
  • Lossy compression of large grayscale or multispectral images using compression ratios or quality targets.
  • Integrate JPEG 2000 support into image processing pipelines that already use NumPy and pydicom.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need JPEG 2000 codec support in Python—particularly for DICOM workflows via pydicom.

The package is actively maintained, has no known vulnerabilities, uses a permissive MIT license, and offers prebuilt wheels for most platforms. Install friction is moderate due to compiled dependencies, but wheels eliminate build requirements for standard environments. Not necessary if you only work with standard JPEG or PNG formats.

Install

pylibjpeg-openjpeg on PyPI

Before you install

Medium install friction due to compiled wheels; prebuilt binaries available for Python 3.10, 3.11, 3.12, and 3.13 on Linux, macOS (x86_64 and ARM64), and Windows. Building from source requires CMake and a C++ compiler. Last release 360 days ago; repository is active with recent commits.

Requires NumPy; building from source requires Python 3.9+, CMake, Git, and a C++ compiler (Microsoft Build Tools on Windows).

License in practice

MIT license (permissive); no restrictions on commercial or private use, modification, or redistribution as long as the license and copyright notice are included.

Quickstart

import numpy as np
from openjpeg import decode, encode_array

# Decode a JPEG 2000 file
arr = decode('filename.j2k')

# Encode a NumPy array
data = np.random.randint(0, 65536, (100, 100, 3), dtype='uint8')
encode_array(data, photometric_interpretation=1)

Verify before relying

  • Performance characteristics for large images or batch processing workflows.
  • Whether lossy encoding quality settings are well-documented or require trial-and-error tuning.
  • Integration maturity with current pydicom versions and DICOM transfer syntax support coverage.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release <4.0,>=3.9
Install frictionMedium. Platform-specific wheel
Runtime dependencies
1 package
numpy
MaintenanceActively maintained 360 days since the last release
Last repo commit
First released
Downloads225,091 / month, #9,228 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: Healthcare IndustryIntended Audience :: Science/ResearchLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Topic :: Scientific/Engineering :: Medical Science Apps.Topic :: Software Development :: Libraries

Evidence: pylibjpeg_openjpeg-2.5.0-cp310-cp310-macosx_10_9_x86_64.whl; pylibjpeg_openjpeg-2.5.0-cp310-cp310-macosx_11_0_arm64.whl; pylibjpeg_openjpeg-2.5.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; pylibjpeg_openjpeg-2.5.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl; pylibjpeg_openjpeg-2.5.0-cp310-cp310-win32.whl; pylibjpeg_openjpeg-2.5.0-cp310-cp310-win_amd64.whl; pylibjpeg_openjpeg-2.5.0-cp311-cp311-macosx_10_9_x86_64.whl; pylibjpeg_openjpeg-2.5.0-cp311-cp311-macosx_11_0_arm64.whl; pylibjpeg_openjpeg-2.5.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; pylibjpeg_openjpeg-2.5.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl; pylibjpeg_openjpeg-2.5.0-cp311-cp311-win32.whl; pylibjpeg_openjpeg-2.5.0-cp311-cp311-win_amd64.whl; pylibjpeg_openjpeg-2.5.0-cp312-cp312-macosx_10_13_x86_64.whl; pylibjpeg_openjpeg-2.5.0-cp312-cp312-macosx_11_0_arm64.whl; pylibjpeg_openjpeg-2.5.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; pylibjpeg_openjpeg-2.5.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl; pylibjpeg_openjpeg-2.5.0-cp312-cp312-win32.whl; pylibjpeg_openjpeg-2.5.0-cp312-cp312-win_amd64.whl; pylibjpeg_openjpeg-2.5.0-cp313-cp313-macosx_10_13_x86_64.whl; pylibjpeg_openjpeg-2.5.0-cp313-cp313-macosx_11_0_arm64.whl

Tags

Capabilities
jpeg 2000 decoder pythonopenjpeg wrapperdicom jpeg2000 decompressionnumpy image encoding decodingpylibjpeg pluginj2k image processinglossless lossy jpeg2000
Topics
medical-imagingjpeg2000dicom
PyPI keywords
dicompydicompythonimagingjpgjpegjpeg2kjpeg2000pylibjpegopenjpeg

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “jpeg 2000 decoder python”

  • pylibjpeg-openjpegDecodes and encodes JPEG 2000 images to and from NumPy arrays, with…
  • pylibjpegDecodes and encodes JPEG, JPEG-LS, JPEG 2000, and RLE image formats,…
  • pylibjpeg-libjpegDecodes JPEG and JPEG-LS images to NumPy arrays, with support for…

Give your agent the search over MCP, or paste the wish link into any chat.

More Libraries packages

urllib3 Worth it
PyPI · Libraries · released May 2026

urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
python-dateutil Worth it
PyPI · Libraries · released Mar 2024

Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.

Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.

Apache-2.0pure Python
1.2Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.

MITpure Python · 3.10+
1.1Bdownloads / mo

See also pylibjpeg · pylibjpeg-libjpeg · qoi · pyjpegls · turbojpeg · simplejpeg · PyTurboJPEG · lilcom · pylzss · pydicom