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.2.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.2.tar.gz.
File metadata
- Download URL: qoi_rs-4.0.2.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 |
3ab26ee76c0a9cd3b14d9d8e747aaa9c0e32039f839b553495b3455f5999fe60
|
|
| MD5 |
cf857785ac5905d2272df3364775bd8f
|
|
| BLAKE2b-256 |
d7552a3d6bc5b3bd2abc8fafdce8cd67f20d641f1637a5f0774e09a9a598c432
|
File details
Details for the file qoi_rs-4.0.2-cp312-abi3-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: qoi_rs-4.0.2-cp312-abi3-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 656.7 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 |
7bb98e13995788653a221c1e505acd759ccfa95f2b97406328316bf521b580ad
|
|
| MD5 |
678558cc71325a675cd01364a65f63c7
|
|
| BLAKE2b-256 |
e64a9ec358bcf6d4efd09d9d09d164f4be7a2abbe105546ad3def64e8d22ddc0
|
File details
Details for the file qoi_rs-4.0.2-cp312-abi3-manylinux_2_28_aarch64.whl.
File metadata
- Download URL: qoi_rs-4.0.2-cp312-abi3-manylinux_2_28_aarch64.whl
- Upload date:
- Size: 624.8 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 |
2399d4fd75d31abbd19a63b3f3af9d9a2b74c81c2aa0736300950e3d122a3bc7
|
|
| MD5 |
e191d7b60a98042bef291a6ad553f894
|
|
| BLAKE2b-256 |
d4e9c20d5c88a3e890bba54ea77e018f569fbd138e829f86f74860497679534d
|