A Python library for decoding JBIG2 images using Rust.
Project description
jbig2_parser
jbig2_parser is a Python library powered by Rust, designed to decode JBIG2 images and convert them into formats like PNG that can be processed by Python libraries such as Pillow (PIL).
This package leverages the Rust crate jbig2dec for efficient and accurate JBIG2 decoding, combined with pyo3 to provide seamless Python bindings.
Features
- Decode JBIG2-encoded images.
- Convert JBIG2 images to PNG buffers compatible with Python's
Pillow. - Easy-to-use API for integrating JBIG2 decoding in Python projects.
Installation
Prerequisites
-
Rust Toolchain: Install Rust by following the instructions at rust-lang.org.
-
Python Environment: Ensure you have Python 3.7 or higher installed. Set up a virtual environment:
python3 -m venv .venv source .venv/bin/activate # On Windows: .venv\Scripts\activate
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jbig2_parser-0.1.1.tar.gz.
File metadata
- Download URL: jbig2_parser-0.1.1.tar.gz
- Upload date:
- Size: 63.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa1b308ecd1ae8eb54c6c3ce572d6cba3a966c6aa6e79b5c1460468ba201623b
|
|
| MD5 |
321dc9bb410b56b73d87fb81995916c6
|
|
| BLAKE2b-256 |
b926b0a4b9a6a2ea227417f5d36e550b35ddb2c211272a5dfabaf6418ae99f3f
|
File details
Details for the file jbig2_parser-0.1.1-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: jbig2_parser-0.1.1-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 202.7 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4753e9e7f9c0793119dbbb72c007d9d0e32c4a4b8f004c261a86093530f623f3
|
|
| MD5 |
8138f609bd8513fdbe49016cc1f811d4
|
|
| BLAKE2b-256 |
811476015b1812232454eb8abc933bc3595732bd3b5788345837e725b7c4a4a1
|