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
Release history Release notifications | RSS feed
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.0.0.tar.gz
(721.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qoi_rs-3.0.0.tar.gz.
File metadata
- Download URL: qoi_rs-3.0.0.tar.gz
- Upload date:
- Size: 721.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7259c2cda4ffe06ce8f63d1130e8459fd126a60b9a835df0357c74b73603a86
|
|
| MD5 |
8f53cbf55862da2f8dce33c193106054
|
|
| BLAKE2b-256 |
ad9259d4a87bcbc8202048833c07e9eab5eac17d35946debf51edb40e72fb6f2
|
File details
Details for the file qoi_rs-3.0.0-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: qoi_rs-3.0.0-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 623.3 kB
- Tags: CPython 3.12+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
705e30c5283dc95b26754369f0cd6bc03509701dd9e0500fddacc3184f74e72b
|
|
| MD5 |
06c921149e17f73f0e150924f2e369a0
|
|
| BLAKE2b-256 |
5c7bf7d2cd26f5ce508b9af4c32e78589ad3356aa4e4874ac86b083da0b36e18
|