A Python framework for decoding JPEG and decoding/encoding DICOM RLE data, with a focus on supporting pydicom
Low maintenance activity. Last release 15 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install pylibjpegpylibjpeg
A Python framework for decoding JPEG and JPEG-LS and decoding/encoding JPEG 2000 and RLE, with a focus on providing support for pydicom.
Installation
Installing the current release
pip install pylibjpeg
Installing extra requirements
The package can be installed with extra requirements to enable support for JPEG (with libjpeg), JPEG 2000 (with openjpeg) and Run-Length Encoding (RLE) (with rle), respectively:
pip install pylibjpeg[libjpeg,openjpeg,rle]
Or alternatively with just all:
pip install pylibjpeg[all]
Installing the development version
Make sure Git is installed, then
git clone https://github.com/pydicom/pylibjpeg
python -m pip install pylibjpeg
Plugins
One or more plugins are required before pylibjpeg is able to handle JPEG images or RLE datasets. To handle a given format or DICOM Transfer Syntax you first have to install the corresponding package:
Supported Image Formats
| Format | Decode? | Encode? | Plugin | License | Based on |
|---|---|---|---|---|---|
| JPEG, JPEG-LS and JPEG XT | Yes | No |