Python interface for libheif library
Actively maintained. Last release 6 months ago, commits in 17 of the last 26 weeks. A safe choice.
$
pip install pi-heifpi-heif
This is a light version of Pillow-Heif with more permissive license for binary wheels.
It includes only HEIF decoder and does not support save operations.
All codebase are the same, refer to pillow-heif docs.
The only difference is the name of the imported project.
Install
python3 -m pip install -U pip
python3 -m pip install pi-heif
Example of use as a Pillow plugin
from PIL import Image
from pi_heif import register_heif_opener
register_heif_opener()
im = Image.open("images/input.heic") # do whatever need with a Pillow image
im.show()