Skip to main content

Wrapper around https://lib.rs/crates/qoi

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-3.1.0.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-3.1.0-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (589.3 kB view details)

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

qoi_rs-3.1.0-cp312-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (554.0 kB view details)

Uploaded CPython 3.12+manylinux: glibc 2.17+ ARM64

File details

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

File metadata

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

File hashes

Hashes for qoi_rs-3.1.0.tar.gz
Algorithm Hash digest
SHA256 f933cd8c2478c68b6b88495df5dbd80baed77f500cffe114a4834c0191277e68
MD5 efa14d145690ced2836a51d0911241ae
BLAKE2b-256 03cf2ca5ed1e5b8ae520c83d13f93e886ced821bc051075bb56ef042437e484a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qoi_rs-3.1.0-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d4e5f841b70d85b811cdf93c987e42d8ee3097a69036a5355e7caa847ac0347a
MD5 c87a287d28d4e85459f166da4cdb4856
BLAKE2b-256 410def753be28edba33f613ba593bc75a4606630f99a66449b1562eff7d5ab02

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qoi_rs-3.1.0-cp312-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f90c55be963a5d8c3c36e82ff76bde837f073e18f6cacbb3ce2256fe6cc7ea5f
MD5 ebe025191971a3e45d2d944c2925b1d9
BLAKE2b-256 f424a6ba8f3fec4bcd79baa2a8d77f626581ca8374ad81823ddf8cce24c4d47e

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