Skip to main content

Simple HEIF/HEIC images plugin for Pillow base on pyhief library.

Project description

heif-image-plugin

build coverage Py Versions license

Simple HEIF/HEIC images plugin for Pillow base on pyhief library.

Originally based on the pyheif-pillow-opener code from Christian Bianciotto.

Installation

You can install heif-image-plugin from PyPI:

pip install heif-image-plugin

How to use

Just import once before opening an image.

from PIL import Image
import HeifImagePlugin

image = Image.open('test.heic')
image.load()

How to contribute

This is not a big library but if you want to contribute is very easy!

  1. clone the repository git clone https://github.com/uploadcare/heif-image-plugin.git
  2. install all requirements make init
  3. do your fixes or add new awesome features (with tests)
  4. run the tests make test
  5. commit in new branch and make a pull request

Changelog

0.2.0

  • Fill info['icc_profile'] on loading.
  • Close and release file pointer after loading.
  • Deconding without custom HeifDecoder(ImageFile.PyDecoder).

Project details


Download files

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

Source Distribution

heif-image-plugin-0.2.0.tar.gz (3.8 kB view details)

Uploaded Source

File details

Details for the file heif-image-plugin-0.2.0.tar.gz.

File metadata

  • Download URL: heif-image-plugin-0.2.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.9

File hashes

Hashes for heif-image-plugin-0.2.0.tar.gz
Algorithm Hash digest
SHA256 031736a8cf13ee8720dfceb3550a5e7461baee5d77c1409f309a6013fef6a3eb
MD5 ba3116a6233788f97cb17c79b747dc8a
BLAKE2b-256 10142a595c6df97620f63c44a2d4896c44ac9e103bb944d331168a3c6649e64d

See more details on using hashes here.

Supported by

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