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.1.tar.gz (63.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.1-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.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

Hashes for jbig2_parser-0.1.1.tar.gz
Algorithm Hash digest
SHA256 aa1b308ecd1ae8eb54c6c3ce572d6cba3a966c6aa6e79b5c1460468ba201623b
MD5 321dc9bb410b56b73d87fb81995916c6
BLAKE2b-256 b926b0a4b9a6a2ea227417f5d36e550b35ddb2c211272a5dfabaf6418ae99f3f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jbig2_parser-0.1.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4753e9e7f9c0793119dbbb72c007d9d0e32c4a4b8f004c261a86093530f623f3
MD5 8138f609bd8513fdbe49016cc1f811d4
BLAKE2b-256 811476015b1812232454eb8abc933bc3595732bd3b5788345837e725b7c4a4a1

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