Skip to content

Commit

Permalink
Update readme, add exif_transpose usage and heif-enc installation
Browse files Browse the repository at this point in the history
  • Loading branch information
homm committed Sep 10, 2024
1 parent 84177a1 commit a1038de
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a1038de

Please sign in to comment.