Skip to main content

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

  1. Rust Toolchain: Install Rust by following the instructions at rust-lang.org.

  2. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jbig2_parser-0.1.0.tar.gz (62.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jbig2_parser-0.1.0-cp310-cp310-win_amd64.whl (202.7 kB view details)

Uploaded CPython 3.10Windows x86-64

File details

Details for the file jbig2_parser-0.1.0.tar.gz.

File metadata

  • Download URL: jbig2_parser-0.1.0.tar.gz
  • Upload date:
  • Size: 62.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.8.1

File hashes

Hashes for jbig2_parser-0.1.0.tar.gz
Algorithm Hash digest
SHA256 59ba88129e81de46bf9de29f90ab08706d79ff19ea63fcde9bdd53d74f1312ec
MD5 503a12d30ae8e2317a38c66a50064c0b
BLAKE2b-256 f900e28d4a99d557dfb6168cd55c185e9c22f24b5c7e89e877a55b8a76ac1e0d

See more details on using hashes here.

File details

Details for the file jbig2_parser-0.1.0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for jbig2_parser-0.1.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e8c6601eb57fff3322e7372c6e1a7f642b898029d6f46549cf00492c3343b03e
MD5 622598e52bc22ca206331a835f16f4c7
BLAKE2b-256 fad7d95de4692a5788cbf5295a70c2e85e988d7476dc9889cfc0ba6808775fae

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page