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
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-4.0.3.tar.gz
(3.4 MB
view details)
Built Distributions
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-4.0.3.tar.gz.
File metadata
- Download URL: qoi_rs-4.0.3.tar.gz
- Upload date:
- Size: 3.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0640eeeeb58b3e88e8b150f5b308e247dc9fbb2f1f1e1e03c6af1e51e2b7c145
|
|
| MD5 |
c7f0ae6b1766b97992af8dc974dc22e3
|
|
| BLAKE2b-256 |
1ead91c607dd3127b4f6d13b8acd32f90d21225e855bdd1ccbc3acd45a379f8c
|
File details
Details for the file qoi_rs-4.0.3-cp312-abi3-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: qoi_rs-4.0.3-cp312-abi3-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 904.1 kB
- Tags: CPython 3.12+, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9afb22994cdc7c61da441a6f8a35efa01a3113490c8b5a8e020ee64f60eeb78
|
|
| MD5 |
6f62581c1dc63637e824f32b373d75a8
|
|
| BLAKE2b-256 |
3307094bf504b8ddb82a919ae5e600b25b49b8656a60bbe80a7becfe4164efd9
|
File details
Details for the file qoi_rs-4.0.3-cp312-abi3-manylinux_2_28_aarch64.whl.
File metadata
- Download URL: qoi_rs-4.0.3-cp312-abi3-manylinux_2_28_aarch64.whl
- Upload date:
- Size: 847.5 kB
- Tags: CPython 3.12+, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b01160af4f7f15be299d6d1439a348622a1e2df4149db7935bd48c65a576d4e
|
|
| MD5 |
f19aa584728bdf0d9ea64bd808b89d52
|
|
| BLAKE2b-256 |
49560314901755b86d01d76fec5820257663f2ff78cecc2ca9a317af0e74cc67
|