pyheif-pillow-opener is a simple HEIF/HEIC opener for Pillow base on pyhief library.
You can install pyheif-pillow-opener from PyPi:
pip install pyheif-pillow-opener
or from GitHub:
pip install https://github.com/ciotto/pyheif-pillow-opener/archive/master.zip
from PIL import Image
from pyheif_pillow_opener import register_heif_opener
register_heif_opener()
image = Image.open('test.heic')
image.load()
This is not a big library but if you want to contribute is very easy!
- clone the repository
git clone https://github.com/ciotto/pyheif-pillow-opener.git
- install all requirements
make init
- do your fixes or add new awesome features (with tests)
- run the tests
make test
- commit in new branch and make a pull request
Released under MIT License.