mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 09:56:17 +03:00
Merged Readme to current master, re-ordered sections
This commit is contained in:
commit
72f376608b
81
README.rst
81
README.rst
|
@ -23,6 +23,26 @@ Why a fork?
|
||||||
|
|
||||||
PIL is not setuptools compatible. Please see http://mail.python.org/pipermail/image-sig/2010-August/006480.html for a more detailed explanation. Also, PIL's current bi-yearly (or greater) release schedule is too infrequent to accomodate the large number and frequency of issues reported.
|
PIL is not setuptools compatible. Please see http://mail.python.org/pipermail/image-sig/2010-August/006480.html for a more detailed explanation. Also, PIL's current bi-yearly (or greater) release schedule is too infrequent to accomodate the large number and frequency of issues reported.
|
||||||
|
|
||||||
|
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::
|
||||||
|
|
||||||
|
import Image
|
||||||
|
|
||||||
|
to::
|
||||||
|
|
||||||
|
from PIL import Image
|
||||||
|
|
||||||
|
Note that if your code imports _imaging, that will also be hosted in the PIL namespace. The preferred method of importing _imaging is::
|
||||||
|
|
||||||
|
from PIL import Image
|
||||||
|
_imaging = Image.core
|
||||||
|
|
||||||
What about image code bugs?
|
What about image code bugs?
|
||||||
---------------------------
|
---------------------------
|
||||||
|
|
||||||
|
@ -80,6 +100,65 @@ Current platform support for Pillow. Binary distributions are contributed for ea
|
||||||
.. [1] x86 only
|
.. [1] x86 only
|
||||||
.. [2] In some cases, x86 support may indicate 32-bit compilation on 64-bit architecture (vs. compilation on 32-bit hardware).
|
.. [2] In some cases, x86 support may indicate 32-bit compilation on 64-bit architecture (vs. compilation on 32-bit hardware).
|
||||||
|
|
||||||
|
Installation
|
||||||
|
============
|
||||||
|
|
||||||
|
If there is a binary package for your system, that is the preferred way of obtaining Pillow.
|
||||||
|
|
||||||
|
Building from Source
|
||||||
|
--------------------
|
||||||
|
|
||||||
|
Some of Pillow's features require external libraries.
|
||||||
|
|
||||||
|
* libjpeg provides JPEG functionality.
|
||||||
|
|
||||||
|
* Pillow has been tested with libjpev versions 6b, 8, and 9
|
||||||
|
|
||||||
|
* zlib provides access to compressed PNGs
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
|
Once you have assembed the prerequisites, run:
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
|
$ pip install pillow
|
||||||
|
|
||||||
|
Platform Specific Instructions
|
||||||
|
------------------------------
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
|
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::
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
||||||
|
|
||||||
Donations
|
Donations
|
||||||
---------
|
---------
|
||||||
|
|
||||||
|
@ -95,6 +174,8 @@ Pillow is a volunteer effort led by Alex Clark. Any contributor interested in re
|
||||||
| Alex Clark (fork author) | http://gittip.com/aclark4life |
|
| Alex Clark (fork author) | http://gittip.com/aclark4life |
|
||||||
+--------------------------------------+---------------------------------------+
|
+--------------------------------------+---------------------------------------+
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Python Imaging Library
|
Python Imaging Library
|
||||||
======================
|
======================
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user