cykooz.heif

A decoder of HEIF format of images


Keywords
heif, heic, libheif, pil, pillow
License
MIT
Install
pip install cykooz.heif==1.0.1

Documentation

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 file:

Read HEIF-image from file-like object:

Also package provides an opener plugin for PIL (Pillow):

Installation from source

System requirements:

Ubuntu 22.04

$ sudo add-apt-repository ppa:strukturag/libheif
$ sudo add-apt-repository ppa:strukturag/libde265
$ sudo apt-get install build-essential python3-dev libheif-dev curl clang
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
$ source $HOME/.cargo/env
$ pip3 install .