Python bindings for HTJ2K (JPEG Part 15) via OpenJPH.
The jp15 Python library provides support for encoding and decoding
High-throughput JPEG2000 (HTJ2K), also known as JPH, JPEG2000 Part 15,
ISO/IEC 15444-15, and ITU-T T.814. So many acronyms!
JPEG2000 is a file format with some nice properties compared to "common jpeg", including a much better quality at the same bitrate. The downside is that encoding is much slower. HTJ2K fixes that, resulting in compression that is on par of faster than turbojpeg (so I've heard).
This wrapper uses cffi to hook into the popular OpenJPH library. Since cffi requires a C API and OpenJPH is C++, this project also implements a C-API on top of OpenJPH. The advantage of using cffi is that the resulting binary wheels work on a wide range of Python versions, including future versions and alternative Python implementations like Pypy.
Binary wheels are provided via Pypi, just use your favorite tool to install:
pip install jp15
Note that this repo has OpenJPH included as a submodule.
Installation:
git clone --recurse-submodules <jp15-repo-url>
cd jp15
pip install -e .
Compile the lib:
python build.py
MIT