cykooz-heif
cykooz-heif is simple python wrapper for the
library libheif-rs.
RawHeifImage is a simple wrapper around low-level HEIF-decoder.
Usage Examples
Read HEIF-image from a file:
from cykooz_heif.image import RawHeifImage
img = RawHeifImage.from_path('data/test.heif')
assert img.width == 3024
assert img.height == 4032
assert img.mode == 'RGB'
assert len(img.data) == 36578304
assert img.stride == 9072
assert len(img.exif) == 2026
Read HEIF-image from a file-like object:
from cykooz_heif.image import RawHeifImage
with open('data/test.heif') as fp:
img = RawHeifImage.from_stream(fp)
assert img.width == 3024
assert img.height == 4032
Also package provides an opener plugin for PIL (Pillow):
from PIL import Image
from cykooz_heif.pil import register_heif_opener
register_heif_opener()
img = Image.open('data/test.heif')
assert isinstance(img, Image.Image)
assert img.size == (3024, 4032)
assert img.mode == 'RGB'
assert img.getpixel((100, 100)) == (73, 74, 69)
img.save('test.jpg', 'JPEG')
Installation from source
System requirements:
- libheif-dev >= 1.18 (https://github.com/strukturag/libheif)
- python3-dev
- Rust 1.78+ (https://www.rust-lang.org/)
Metadata
Release files for cykooz-heif 2.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cykooz_heif-2.0.1.tar.gz | 30.4 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| cykooz_heif-2.0.1-cp314-cp314-manylinux_2_34_x86_64.whl | CPython 3.14 | CPython 3.14 | Linux glibc 2.34+ x86-64 | Details |
| cykooz_heif-2.0.1-cp313-cp313-manylinux_2_34_x86_64.whl | CPython 3.13 | CPython 3.13 | Linux glibc 2.34+ x86-64 | Details |
| cykooz_heif-2.0.1-cp312-cp312-manylinux_2_34_x86_64.whl | CPython 3.12 | CPython 3.12 | Linux glibc 2.34+ x86-64 | Details |
| cykooz_heif-2.0.1-cp311-cp311-manylinux_2_34_x86_64.whl | CPython 3.11 | CPython 3.11 | Linux glibc 2.34+ x86-64 | Details |
| cykooz_heif-2.0.1-cp310-cp310-manylinux_2_34_x86_64.whl | CPython 3.10 | CPython 3.10 | Linux glibc 2.34+ x86-64 | Details |
Total release size: 56.7 MB
Release files / cykooz_heif-2.0.1.tar.gz
| Download URL | cykooz_heif-2.0.1.tar.gz |
|---|---|
| Size | 30.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
83ca73ffb7354fdad16222f965d4195e537820e677358d99fc06653f4f2fc288
|
|
BLAKE2b-256 checksum How to use checksums |
a2c2b10320ffea9ebb6c8d69fa04a71fc0e1ee3096ca29ac8144d07306fa3160
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / cykooz_heif-2.0.1-cp314-cp314-manylinux_2_34_x86_64.whl
| Download URL | cykooz_heif-2.0.1-cp314-cp314-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 11.3 MB |
| Tags | CPython 3.14 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
dba8de261fed3bd8bb339df78bf1167ba2141fe15a67523daaee2e9991b8a8d5
|
|
BLAKE2b-256 checksum How to use checksums |
f390b1784c5105bcf0d58ae3cab03921ed25867ab70acdadc4efb93f46570e4f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / cykooz_heif-2.0.1-cp313-cp313-manylinux_2_34_x86_64.whl
| Download URL | cykooz_heif-2.0.1-cp313-cp313-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 11.3 MB |
| Tags | CPython 3.13 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
c6b859b7e2c37b82f78e59d3980c1acb95a7bf03990695f2c7d2d5cc841d6b5b
|
|
BLAKE2b-256 checksum How to use checksums |
178055aa34180310c1168fe5d95892bf6a37bfae6e717b905692e602b190e8f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / cykooz_heif-2.0.1-cp312-cp312-manylinux_2_34_x86_64.whl
| Download URL | cykooz_heif-2.0.1-cp312-cp312-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 11.3 MB |
| Tags | CPython 3.12 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
7d5f80c501dbf22c3d3f469a49656c112062c7e3d5d807bbe7845784609542a2
|
|
BLAKE2b-256 checksum How to use checksums |
38b14b5efff241251da480b2f4f57b4f91fee51d86b171d6179adb5b5e55e1ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / cykooz_heif-2.0.1-cp311-cp311-manylinux_2_34_x86_64.whl
| Download URL | cykooz_heif-2.0.1-cp311-cp311-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 11.3 MB |
| Tags | CPython 3.11 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
7be979d65f57a2301a44195e7294f70e9818db1b01bd0c8461067d22d7ddf877
|
|
BLAKE2b-256 checksum How to use checksums |
2f761ad7f576349e4bed594bbf319c0a5807118102b698bfb9d45ed6423e6862
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / cykooz_heif-2.0.1-cp310-cp310-manylinux_2_34_x86_64.whl
| Download URL | cykooz_heif-2.0.1-cp310-cp310-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 11.3 MB |
| Tags | CPython 3.10 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
994faedd7fcff443a240c9c54d72b78b24bd8b7451e077fae7767be328173184
|
|
BLAKE2b-256 checksum How to use checksums |
3e354c34be6599328f4999af4b1954b5d8952eecd0f42e31d6b0b0a590f65d12
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|