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 tuple(decoded.getdata()) == tuple(image.getdata())

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.1.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.1-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (617.7 kB view details)

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

qoi_rs-4.0.1-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (587.1 kB view details)

Uploaded CPython 3.11+manylinux: glibc 2.17+ ARM64

File details

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

File metadata

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

File hashes

Hashes for qoi_rs-4.0.1.tar.gz
Algorithm Hash digest
SHA256 34fe6c41d43846ec94fa6c06cbb9031373a09d1695ed3be869aa6251fd06e04e
MD5 831c00cc6102f42304a491c770234ebc
BLAKE2b-256 3400ef1c3689fa993df2ba3e8b4e9bc138c7c1bdd6eebbdc0932433a1e4f231a

See more details on using hashes here.

File details

Details for the file qoi_rs-4.0.1-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for qoi_rs-4.0.1-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 036885185072124ec5c08cfb63bb0c9199d3f2c10659afa8cee90c77539f98c8
MD5 90a65fcbf51dee07ac2da2630227f9f8
BLAKE2b-256 6da2e2e0e10e975da79ea818575182ea856e6bf9703f1350e0317d2b134dbd6c

See more details on using hashes here.

File details

Details for the file qoi_rs-4.0.1-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for qoi_rs-4.0.1-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8b42b099c86c2098d7bd8b750327268825ec6474db130b9257e535cf9fb828c0
MD5 79e27fa1f8c0245f88b686e8979f0dbc
BLAKE2b-256 0eaa0e1a86891760d7d51965ddb855056eef43f23a7931d818b48332fc466a5b

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