Skip to main content

cykooz-heif

cykooz-heif is simple python wrapper for the library libheif-rs.

RawHeifImage is a simple wrapper around low-level HEIF-decoder.

CHANGELOG

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:

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cykooz_heif-2.0.1.tar.gz (30.4 kB view details)

Uploaded Source

Built Distributions

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

cykooz_heif-2.0.1-cp314-cp314-manylinux_2_34_x86_64.whl (11.3 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.34+ x86-64

cykooz_heif-2.0.1-cp313-cp313-manylinux_2_34_x86_64.whl (11.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

cykooz_heif-2.0.1-cp312-cp312-manylinux_2_34_x86_64.whl (11.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

cykooz_heif-2.0.1-cp311-cp311-manylinux_2_34_x86_64.whl (11.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

cykooz_heif-2.0.1-cp310-cp310-manylinux_2_34_x86_64.whl (11.3 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

File details

Details for the file cykooz_heif-2.0.1.tar.gz.

File metadata

  • Download URL: cykooz_heif-2.0.1.tar.gz
  • Upload date:
  • Size: 30.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.7

File hashes

Hashes for cykooz_heif-2.0.1.tar.gz
Algorithm Hash digest
SHA256 83ca73ffb7354fdad16222f965d4195e537820e677358d99fc06653f4f2fc288
MD5 ca3cae5f4d5f25bb329cb9ea83ebe614
BLAKE2b-256 a2c2b10320ffea9ebb6c8d69fa04a71fc0e1ee3096ca29ac8144d07306fa3160

See more details on using hashes here.

File details

Details for the file cykooz_heif-2.0.1-cp314-cp314-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for cykooz_heif-2.0.1-cp314-cp314-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 dba8de261fed3bd8bb339df78bf1167ba2141fe15a67523daaee2e9991b8a8d5
MD5 25d492d1eaaf8c9c2a61b1cabee606a4
BLAKE2b-256 f390b1784c5105bcf0d58ae3cab03921ed25867ab70acdadc4efb93f46570e4f

See more details on using hashes here.

File details

Details for the file cykooz_heif-2.0.1-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for cykooz_heif-2.0.1-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 c6b859b7e2c37b82f78e59d3980c1acb95a7bf03990695f2c7d2d5cc841d6b5b
MD5 e495de4d4402f1a4be5a8958bc89750c
BLAKE2b-256 178055aa34180310c1168fe5d95892bf6a37bfae6e717b905692e602b190e8f5

See more details on using hashes here.

File details

Details for the file cykooz_heif-2.0.1-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for cykooz_heif-2.0.1-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 7d5f80c501dbf22c3d3f469a49656c112062c7e3d5d807bbe7845784609542a2
MD5 3be9436f1b284d238fc6396277c257ee
BLAKE2b-256 38b14b5efff241251da480b2f4f57b4f91fee51d86b171d6179adb5b5e55e1ee

See more details on using hashes here.

File details

Details for the file cykooz_heif-2.0.1-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for cykooz_heif-2.0.1-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 7be979d65f57a2301a44195e7294f70e9818db1b01bd0c8461067d22d7ddf877
MD5 0d460622f5dc5c5f7ce4e430194c38fd
BLAKE2b-256 2f761ad7f576349e4bed594bbf319c0a5807118102b698bfb9d45ed6423e6862

See more details on using hashes here.

File details

Details for the file cykooz_heif-2.0.1-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for cykooz_heif-2.0.1-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 994faedd7fcff443a240c9c54d72b78b24bd8b7451e077fae7767be328173184
MD5 bd14648ca8d52613b929d2cd78206b0a
BLAKE2b-256 3e354c34be6599328f4999af4b1954b5d8952eecd0f42e31d6b0b0a590f65d12

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2.0.1 This release

6 files

2.0.0

6 files

1.3.0

6 files

1.2.0

6 files

1.1.0

6 files

1.0.1

6 files

1.0.0

6 files

0.14.0

5 files

0.13.1

6 files

0.13

6 files

0.12

5 files

0.11

5 files

0.10.4

5 files

0.10.2

5 files

0.10

5 files

0.9

5 files

0.8.3

5 files

0.8

5 files

0.7.2

5 files

0.7

5 files

0.6

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page