# 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
1. **Rust Toolchain**:
Install Rust by following the instructions at [rust-lang.org](https://rust-lang.org/tools/install).
2. **Python Environment**:
Ensure you have Python 3.7 or higher installed. Set up a virtual environment:
```bash
python3 -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
Raw data
{
"_id": null,
"home_page": null,
"name": "jbig2-parser",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "jbig2, image-processing, python-bindings, rust",
"author": "Koehler, Nils <nils.koehler1@gmx.net>",
"author_email": "\"Koehler, Nils\" <nils.koehler1@gmx.net>",
"download_url": "https://files.pythonhosted.org/packages/b9/26/b0a4b9a6a2ea227417f5d36e550b35ddb2c211272a5dfabaf6418ae99f3f/jbig2_parser-0.1.1.tar.gz",
"platform": null,
"description": "# jbig2_parser\r\n\r\n`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). \r\n\r\nThis package leverages the Rust crate `jbig2dec` for efficient and accurate JBIG2 decoding, combined with `pyo3` to provide seamless Python bindings.\r\n\r\n---\r\n\r\n## Features\r\n\r\n- Decode JBIG2-encoded images.\r\n- Convert JBIG2 images to PNG buffers compatible with Python's `Pillow`.\r\n- Easy-to-use API for integrating JBIG2 decoding in Python projects.\r\n\r\n---\r\n\r\n## Installation\r\n\r\n### Prerequisites\r\n\r\n1. **Rust Toolchain**:\r\n Install Rust by following the instructions at [rust-lang.org](https://rust-lang.org/tools/install).\r\n\r\n2. **Python Environment**:\r\n Ensure you have Python 3.7 or higher installed. Set up a virtual environment:\r\n ```bash\r\n python3 -m venv .venv\r\n source .venv/bin/activate # On Windows: .venv\\Scripts\\activate\r\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A Python library for decoding JBIG2 images using Rust.",
"version": "0.1.1",
"project_urls": {
"homepage": "https://github.com/MichailTal/jbig2_parser",
"repository": "https://github.com/MichailTal/jbig2_parser"
},
"split_keywords": [
"jbig2",
" image-processing",
" python-bindings",
" rust"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "811476015b1812232454eb8abc933bc3595732bd3b5788345837e725b7c4a4a1",
"md5": "8138f609bd8513fdbe49016cc1f811d4",
"sha256": "4753e9e7f9c0793119dbbb72c007d9d0e32c4a4b8f004c261a86093530f623f3"
},
"downloads": -1,
"filename": "jbig2_parser-0.1.1-cp310-cp310-win_amd64.whl",
"has_sig": false,
"md5_digest": "8138f609bd8513fdbe49016cc1f811d4",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": null,
"size": 202727,
"upload_time": "2025-01-27T17:10:19",
"upload_time_iso_8601": "2025-01-27T17:10:19.157215Z",
"url": "https://files.pythonhosted.org/packages/81/14/76015b1812232454eb8abc933bc3595732bd3b5788345837e725b7c4a4a1/jbig2_parser-0.1.1-cp310-cp310-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "b926b0a4b9a6a2ea227417f5d36e550b35ddb2c211272a5dfabaf6418ae99f3f",
"md5": "321dc9bb410b56b73d87fb81995916c6",
"sha256": "aa1b308ecd1ae8eb54c6c3ce572d6cba3a966c6aa6e79b5c1460468ba201623b"
},
"downloads": -1,
"filename": "jbig2_parser-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "321dc9bb410b56b73d87fb81995916c6",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 63051,
"upload_time": "2025-01-27T17:10:21",
"upload_time_iso_8601": "2025-01-27T17:10:21.646089Z",
"url": "https://files.pythonhosted.org/packages/b9/26/b0a4b9a6a2ea227417f5d36e550b35ddb2c211272a5dfabaf6418ae99f3f/jbig2_parser-0.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-27 17:10:21",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "MichailTal",
"github_project": "jbig2_parser",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "jbig2-parser"
}