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-2.2.1.tar.gz
(721.1 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-2.2.1.tar.gz.
File metadata
- Download URL: qoi_rs-2.2.1.tar.gz
- Upload date:
- Size: 721.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d428b14808928529a7e142d62048e866a8904a232c5f28dc211933a1b0a691a
|
|
| MD5 |
42b3193cecc4d1d8ec8d3686d9e02770
|
|
| BLAKE2b-256 |
b54a37abc350a3c32dc45a562d7cb46f7c04a9adcfc3370ca2c5e0a6fb99a4d4
|
File details
Details for the file qoi_rs-2.2.1-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: qoi_rs-2.2.1-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 563.7 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 |
60f5723c2ae234c4239f50ee11044073e9192764344795c5bda7f9cdb08cbdb7
|
|
| MD5 |
0a3eeddc9f35d3aced879edb25f234d4
|
|
| BLAKE2b-256 |
268ed54187d424463ac6f4e352206429746800bcac0ddc433d821b57bf352405
|