@@ -9,66 +9,20 @@ Python Imaging Library
9
9
----------------------
10
10
11
11
The `Python Imaging Library <http://www.pythonware.com/products/pil/ >`_, or PIL
12
- for short, is *the * library for image manipulation in Python.
12
+ for short, is *the * library for image manipulation in Python. Unfortunately, its
13
+ development has stagnated, with its last release in 2009.
13
14
14
- It works with Python 1.5.2 and above, including 2.5, 2.6 and 2.7. Unfortunately,
15
- it doesn't work with 3.0+ yet .
15
+ Lucky for you, there's an actively-developed fork of PIL called ` Pillow < http://python-imaging.github.io/ >`_ -
16
+ it's easier to install, runs on all operating systems, and supports Python 3 .
16
17
17
18
Installation
18
19
~~~~~~~~~~~~
19
20
20
- PIL has a reputation of not being very straightforward to install. Listed below
21
- are installation notes on various systems .
21
+ Before installing Pillow, you'll have to install Pillow's prerequisites. Find
22
+ the instructions for your platform ` here < https://pypi.python.org/pypi/Pillow/2.1.0#platform-specific-instructions >`_ .
22
23
23
- Also, there's a fork named `Pillow <http://pypi.python.org/pypi/Pillow >`_ which is easier
24
- to install. It has good setup instructions for all platforms.
25
-
26
- Installing on Linux
27
- ~~~~~~~~~~~~~~~~~~~
28
-
29
- Arch Linux
30
- ``````````
31
-
32
- PIL is maintained in the official community repository, and installed with the system installer as:
33
-
34
- .. code-block :: bash
35
-
36
- $ sudo pacman -S python2-imaging
37
-
38
- Ubuntu 12.10
39
- ````````````
40
-
41
- Can be installed on the command line as:
42
-
43
- .. code-block :: bash
44
-
45
- $ sudo apt-get install python-imaging
46
-
47
-
48
- Installing on Mac OS X
49
- ~~~~~~~~~~~~~~~~~~~~~~
50
-
51
- PIP doesn't know about the Mac OS X Freetype paths. To rectify that:
52
-
53
- .. code-block :: bash
54
-
55
- $ ln -s /usr/X11/include/freetype2 /usr/local/include/
56
- $ ln -s /usr/X11/include/ft2build.h /usr/local/include/
57
- $ ln -s /usr/X11/lib/libfreetype.6.dylib /usr/local/lib/
58
- $ ln -s /usr/X11/lib/libfreetype.6.dylib /usr/local/lib/libfreetype.dylib
59
-
60
- then:
24
+ After that, it's straightforward:
61
25
62
26
.. code-block :: bash
63
27
64
- $ brew install libjpeg
65
- $ pip install PIL
66
-
67
-
68
- Installing on Windows
69
- ~~~~~~~~~~~~~~~~~~~~~
70
-
71
- .. todo ::
72
- Notes on installing on Windows machines
73
-
74
-
28
+ $ pip install Pillow
0 commit comments