Skip to content

Commit a9f19a9

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 828ff0b + e31d0d8 commit a9f19a9

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,35 +32,37 @@ Pull requests are greatly welcome.
3232
## Installation
3333
(Recommended) From [PyPi](https://pypi.org/project/pillow-heif/):
3434

35-
```pip install pillow_heif```
35+
```bash
36+
pip install pillow_heif
37+
```
3638

3739

3840
## Installation from source
3941
**(NOT RECOMMENDED)**(Until finished integration of PEP 517)
4042

4143
##### Linux Ubuntu
42-
```
44+
```bash
4345
sudo add-apt-repository ppa:strukturag/libheif
4446
apt install libffi libheif-dev libde265-dev
4547
pip install git+https://github.com/bigcat88/pillow_heif.git
4648
```
4749

4850
##### MacOS
49-
```
51+
```bash
5052
brew install x265 libjpeg libde265 libheif
5153
pip3 install git+https://github.com/bigcat88/pillow_heif.git
5254
```
5355

5456
##### Windows
5557
With vcpkg and Visual Studio 2015+ Tools installed:
56-
```
58+
```bat
5759
vcpkg install aom libheif --triplet=x64-windows
5860
VCPKG_PREFIX="path_to:vcpkg/installed/x64-windows"
5961
pip install git+https://github.com/bigcat88/pillow_heif.git
6062
```
6163

6264
## Example of use as opener
63-
```
65+
```python3
6466
from PIL import Image
6567
from pillow_heif import register_heif_opener
6668

@@ -71,8 +73,7 @@ image.load()
7173
```
7274

7375
## Example of use as reader
74-
75-
```
76+
```python3
7677
from PIL import Image
7778
import pillow_heif
7879

@@ -84,7 +85,7 @@ image = Image.frombytes(
8485
'raw',
8586
heif_file.mode,
8687
heif_file.stride,
87-
)
88+
)
8889
```
8990

9091
### The HeifFile object

0 commit comments

Comments
 (0)