File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff 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
4345sudo add-apt-repository ppa:strukturag/libheif
4446apt install libffi libheif-dev libde265-dev
4547pip install git+https://github.com/bigcat88/pillow_heif.git
4648```
4749
4850##### MacOS
49- ```
51+ ``` bash
5052brew install x265 libjpeg libde265 libheif
5153pip3 install git+https://github.com/bigcat88/pillow_heif.git
5254```
5355
5456##### Windows
5557With vcpkg and Visual Studio 2015+ Tools installed:
56- ```
58+ ``` bat
5759vcpkg install aom libheif --triplet=x64-windows
5860VCPKG_PREFIX="path_to:vcpkg/installed/x64-windows"
5961pip install git+https://github.com/bigcat88/pillow_heif.git
6062```
6163
6264## Example of use as opener
63- ```
65+ ``` python3
6466from PIL import Image
6567from 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
7677from PIL import Image
7778import 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
You can’t perform that action at this time.
0 commit comments