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.5.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.5-cp312-abi3-musllinux_1_1_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.12+musllinux: musl 1.1+ x86-64

qoi_rs-4.0.5-cp312-abi3-musllinux_1_1_aarch64.whl (965.2 kB view details)

Uploaded CPython 3.12+musllinux: musl 1.1+ ARM64

qoi_rs-4.0.5-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (998.3 kB view details)

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

qoi_rs-4.0.5-cp312-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (932.0 kB view details)

Uploaded CPython 3.12+manylinux: glibc 2.17+ ARM64

File details

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

File metadata

  • Download URL: qoi_rs-4.0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 5f8d44bf5cea90ba9f60fdb739f0221f6e0ddfda09c56dcf87d30616561b43ca
MD5 8ef5c820049da397ca9942055520bb51
BLAKE2b-256 371e6fd414d7ffbf8dcf23918b373116dd65cc9776d6a562330a1030954eb8e0

See more details on using hashes here.

File details

Details for the file qoi_rs-4.0.5-cp312-abi3-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for qoi_rs-4.0.5-cp312-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 1a292976c465585ab57b584f5328de5537897dacfa9abd5ab7e76605caee6276
MD5 2f7a036b5df444d6e361b9502e3ca7f9
BLAKE2b-256 0cb9302a5a6a6b782af3788265de51f68ca69cccf4a16344908ff23b3d91ed74

See more details on using hashes here.

File details

Details for the file qoi_rs-4.0.5-cp312-abi3-musllinux_1_1_aarch64.whl.

File metadata

File hashes

Hashes for qoi_rs-4.0.5-cp312-abi3-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 ca11f193ed9cc4bcd4a72df0befccbcc697736ac6b990b50c1e15a489d2061a3
MD5 14abb8d63341c2cd7eee03c657b21419
BLAKE2b-256 f619b929ae6665ea8d5eedf5ac3900f31e5fd9e1b2df71ec064edf1acfa09e39

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qoi_rs-4.0.5-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8a9021a779e261b370bdfa5b9b2fb4c1bccdcd2e67ea7f27170cf58c6cc0be4e
MD5 aba0d59c82037df24294a4c3d29b3960
BLAKE2b-256 f12f604cbbe966c2490b74e99ef393af7dd4f769989cc6ff49004d7ca71bc5df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qoi_rs-4.0.5-cp312-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 6b198238856dd1214ed6b3e8cdbdb0969aeb23cbb0ca1dd8a5e2239300795530
MD5 720ab68812d94f0832b84a7b5498ff3c
BLAKE2b-256 a8328eb1c38a71fcf201965c0ede0af17a695e32bac32e00e692f7fff0e9f1c4

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