Rst, not gfm.

This commit is contained in:
Eric Soroos 2013-03-18 22:51:37 -07:00
parent e55a94567a
commit eb4db1c951

View File

@ -89,42 +89,53 @@ Building from Source
Some of Pillow's features require external libraries.
* libjpeg provides JPEG functionality. Pillow has been tested with libjpev versions 6b and 8
* libjpeg provides JPEG functionality.
* Pillow has been tested with libjpev versions 6b and 8
* zlib provides access to compressed PNGs
* libtiff provides group4 tiff functionality. Pillow has been tested with versions 3.x and 4.0
* libtiff provides group4 tiff functionality.
* Pillow has been tested with versions 3.x and 4.0
* libfreetype provides type related services
* littlecms provides color management
* libwebp provides the Webp format.
If the prerequisites are installed in the standard library locations for your machine, no configuration shoule be required. If they are installed in a non-standard location, you may need to configure setuptools to use those locations. See [[url here]] for more information.
Once you have assembed the prerequisites, run:
<pre><code>
::
$ pip install pillow
</code></pre>
Platform Specific Instructions
------------------------------
** Ubuntu **
Mac OSX
*******
Ubuntu or Debian
******
If you didn't build Python from sources, make sure you have Python's build support files on your machine.
<pre><code>
sudo apt-get install python-dev python-setuptools
# or for python 3
sudo apt-get install python3-dev python3-setuptools
</code></pre>
::
sudo apt-get install python-dev python-setuptools
# or for python 3
sudo apt-get install python3-dev python3-setuptools
The library prerequisites are installed with:
<pre><code>
# Ubuntu 10.04 LTS
sudo apt-get install libtiff4-dev libjpeg62-dev zlib1g-dev libfreetype6-dev liblcms1-dev
# Ubuntu 12.04 LTS
sudo apt-get install libtiff4-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms1-dev libwebp-dev
</code></pre>
The library prerequisites are installed with::
# Ubuntu 10.04 LTS
sudo apt-get install libtiff4-dev libjpeg62-dev zlib1g-dev libfreetype6-dev liblcms1-dev
# Ubuntu 12.04 LTS
sudo apt-get install libtiff4-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms1-dev libwebp-dev
##Undone## Debian library versions.
Porting
@ -132,14 +143,12 @@ Porting
Pillow is a functional dropin for the Python Imaging Library. To run under Pillow, existing code needs to be modified to import the Imaging modules from the PIL namespace instead of the global namespace.
Change:
<pre><code>
import Image
</code></pre>
to
<pre><code>
from PIL import Image
</code></pre>
Change::
import Image
to::
from PIL import Image