Skip to main content

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


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)

Uploaded Source

Built Distributions

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

qoi_rs-4.0.3-cp312-abi3-manylinux_2_28_x86_64.whl (904.1 kB view details)

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

qoi_rs-4.0.3-cp312-abi3-manylinux_2_28_aarch64.whl (847.5 kB view details)

Uploaded CPython 3.12+manylinux: glibc 2.28+ ARM64

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

Hashes for qoi_rs-4.0.3.tar.gz
Algorithm Hash digest
SHA256 0640eeeeb58b3e88e8b150f5b308e247dc9fbb2f1f1e1e03c6af1e51e2b7c145
MD5 c7f0ae6b1766b97992af8dc974dc22e3
BLAKE2b-256 1ead91c607dd3127b4f6d13b8acd32f90d21225e855bdd1ccbc3acd45a379f8c

See more details on using hashes here.

File details

Details for the file qoi_rs-4.0.3-cp312-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for qoi_rs-4.0.3-cp312-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d9afb22994cdc7c61da441a6f8a35efa01a3113490c8b5a8e020ee64f60eeb78
MD5 6f62581c1dc63637e824f32b373d75a8
BLAKE2b-256 3307094bf504b8ddb82a919ae5e600b25b49b8656a60bbe80a7becfe4164efd9

See more details on using hashes here.

File details

Details for the file qoi_rs-4.0.3-cp312-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for qoi_rs-4.0.3-cp312-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 1b01160af4f7f15be299d6d1439a348622a1e2df4149db7935bd48c65a576d4e
MD5 f19aa584728bdf0d9ea64bd808b89d52
BLAKE2b-256 49560314901755b86d01d76fec5820257663f2ff78cecc2ca9a317af0e74cc67

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