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-2.2.0.tar.gz (738.9 kB view details)

Uploaded Source

Built Distribution

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

qoi_rs-2.2.0-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (563.7 kB view details)

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

File details

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

File metadata

  • Download URL: qoi_rs-2.2.0.tar.gz
  • Upload date:
  • Size: 738.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for qoi_rs-2.2.0.tar.gz
Algorithm Hash digest
SHA256 3d6c1dce132e1bc9ecbdab3ede6c65847fb7e918462e3a63d48de0ed521ef043
MD5 66c3019b50a2c9fd99a6e43b4af9da95
BLAKE2b-256 f350319a6dfd8f64e893c062decbb253683c562488cdb510406ab7c2a18ae2b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qoi_rs-2.2.0-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 472a365754d1de1f2a8048ceb45a5929050cfa639b01f2e4ab6547a026e7ca32
MD5 ef6ad149c994bbbf250e65c37003b3b8
BLAKE2b-256 cc7dc528a99bf8a9f79fd298981ed89a14619542fe3c16437a21a982d291bf16

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