File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33
44**Porting existing PIL-based code to Pillow **
55
6- Pillow is a functional drop-in replacement for the Python Imaging Library. To
7- run your existing PIL-compatible code with Pillow, it needs to be modified to
8- import the ``Image `` module from the ``PIL `` namespace *instead * of the
6+ Pillow is a functional drop-in replacement for the Python Imaging Library.
7+
8+ PIL is Python 2 only. Pillow dropped support for Python 2 in Pillow
9+ 7.0. So if you would like to run the latest version of Pillow, you will first
10+ and foremost need to port your code from Python 2 to 3.
11+
12+ To run your existing PIL-compatible code with Pillow, it needs to be modified
13+ to import the ``Image `` module from the ``PIL `` namespace *instead * of the
914global namespace. Change this::
1015
1116 import Image
You can’t perform that action at this time.
0 commit comments