@@ -9,67 +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
24
- is easier to install. It has good setup instructions for all platforms and
25
- supports Python 3 (PIL currently does not).
26
-
27
- Installing on Linux
28
- ~~~~~~~~~~~~~~~~~~~
29
-
30
- Arch Linux
31
- ``````````
32
-
33
- PIL is maintained in the official community repository, and installed with the system installer as:
34
-
35
- .. code-block :: bash
36
-
37
- $ sudo pacman -S python2-imaging
38
-
39
- Ubuntu 12.10
40
- ````````````
41
-
42
- Can be installed on the command line as:
43
-
44
- .. code-block :: bash
45
-
46
- $ sudo apt-get install python-imaging
47
-
48
-
49
- Installing on Mac OS X
50
- ~~~~~~~~~~~~~~~~~~~~~~
51
-
52
- PIP doesn't know about the Mac OS X Freetype paths. To rectify that:
53
-
54
- .. code-block :: bash
55
-
56
- $ ln -s /usr/X11/include/freetype2 /usr/local/include/
57
- $ ln -s /usr/X11/include/ft2build.h /usr/local/include/
58
- $ ln -s /usr/X11/lib/libfreetype.6.dylib /usr/local/lib/
59
- $ ln -s /usr/X11/lib/libfreetype.6.dylib /usr/local/lib/libfreetype.dylib
60
-
61
- then:
24
+ After that, it's straightforward:
62
25
63
26
.. code-block :: bash
64
27
65
- $ brew install libjpeg
66
- $ pip install PIL
67
-
68
-
69
- Installing on Windows
70
- ~~~~~~~~~~~~~~~~~~~~~
71
-
72
- .. todo ::
73
- Notes on installing on Windows machines
74
-
75
-
28
+ $ pip install Pillow
0 commit comments