From 88c3c186ab86412059a02f7441357012a8d13c1f Mon Sep 17 00:00:00 2001 From: Aleksandr Karpinskii Date: Tue, 10 Sep 2024 18:13:40 +0400 Subject: [PATCH] Update readme, add exif_transpose usage and heif-enc installation --- README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2aa43cf..d3c7603 100644 --- a/README.md +++ b/README.md @@ -17,16 +17,24 @@ You can install **heif-image-plugin** from *PyPI*: `pip install heif-image-plugin` +### Install libheif binaries for saving capabilities + +Ubuntu: + +`apt install libheif-examples libheif-plugin-x265 libheif-plugin-aomenc` + ## How to use Just import once before opening an image. ```python -from PIL import Image +from PIL import Image, ImageOps import HeifImagePlugin image = Image.open('test.heic') -image.load() +ImageOps.exif_transpose(image, in_place=True) +# requires `heif-enc` binary with installed codecs or plugins +image.save('test.avif') ``` ## How to contribute