Metadata-Version: 2.4
Name: jbig2_parser
Version: 0.1.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Rust
Classifier: License :: OSI Approved :: MIT License
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Multimedia :: Graphics :: Graphics Conversion
License-File: LICENSE
Summary: A Python library for decoding JBIG2 images using Rust.
Keywords: jbig2,image-processing,python-bindings,rust
Author: Koehler, Nils <nils.koehler1@gmx.net>
Author-email: "Koehler, Nils" <nils.koehler1@gmx.net>
License: MIT
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM

# 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

