Skip to content

Commit 88c3c18

Browse files
committed
Update readme, add exif_transpose usage and heif-enc installation
1 parent a32f103 commit 88c3c18

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

README.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,24 @@ You can install **heif-image-plugin** from *PyPI*:
1717

1818
`pip install heif-image-plugin`
1919

20+
### Install libheif binaries for saving capabilities
21+
22+
Ubuntu:
23+
24+
`apt install libheif-examples libheif-plugin-x265 libheif-plugin-aomenc`
25+
2026
## How to use
2127

2228
Just import once before opening an image.
2329

2430
```python
25-
from PIL import Image
31+
from PIL import Image, ImageOps
2632
import HeifImagePlugin
2733

2834
image = Image.open('test.heic')
29-
image.load()
35+
ImageOps.exif_transpose(image, in_place=True)
36+
# requires `heif-enc` binary with installed codecs or plugins
37+
image.save('test.avif')
3038
```
3139

3240
## How to contribute

0 commit comments

Comments
 (0)