Skip to main content

Blazingly fast library for decoding and encoding QOI images

Project description

qoi-rs

Python library made using qoi and pyo3.

Usage

With Pillow

from PIL import Image
from qoi_rs import encode_pillow, decode_pillow

image: Image.Image = Image.open("./qoi_test_images/dice.png")

qoi_bytes: bytes = encode_pillow(image)
decoded: Image.Image = decode_pillow(qoi_bytes)

assert decoded.width == image.width
assert decoded.height == image.height

assert decoded.get_flattened_data() == image.get_flattened_data()

image.close()
decoded.close()

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

qoi_rs-4.0.4.tar.gz (3.4 MB view details)

Uploaded Source

Built Distributions

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

qoi_rs-4.0.4-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.12+manylinux: glibc 2.17+ x86-64

qoi_rs-4.0.4-cp312-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (942.3 kB view details)

Uploaded CPython 3.12+manylinux: glibc 2.17+ ARM64

File details

Details for the file qoi_rs-4.0.4.tar.gz.

File metadata

  • Download URL: qoi_rs-4.0.4.tar.gz
  • Upload date:
  • Size: 3.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for qoi_rs-4.0.4.tar.gz
Algorithm Hash digest
SHA256 ccb2fa51e707816450430045ee1345146b32cd03125c8d73a57a4d6d1b87faba
MD5 da795312b239ba26384cc909cdb5177e
BLAKE2b-256 e1a3c7d351ab45676ca38065e3f0ca9707a073b0a6e53597e95aeb5dae4222e0

See more details on using hashes here.

File details

Details for the file qoi_rs-4.0.4-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for qoi_rs-4.0.4-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 13eaffcd65d22a3c17ea333b3724c318352fc1bf5d42732f2bf4082a9694c6d9
MD5 493b914d841801775a92d3ca7472be45
BLAKE2b-256 196df83496e61e73c047a0585079fed1e69d1affa914b6c1a695197c7ebc339c

See more details on using hashes here.

File details

Details for the file qoi_rs-4.0.4-cp312-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for qoi_rs-4.0.4-cp312-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 13bb0f4ec1a4626fdc06e775f0800bb31f7523960a9701f4af525480c22964db
MD5 7e9eb2d9a159af9c50959dc35b3236b7
BLAKE2b-256 fc5b810057b4b276a440790956e7d597d85ac7b1495676ed4be79c36fc401086

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