mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 04:07:21 +03:00
Merge branch 'master' of https://github.com/python-imaging/Pillow into pypy
This commit is contained in:
commit
c08679ede9
|
@ -1,6 +1,11 @@
|
|||
Changelog (Pillow)
|
||||
==================
|
||||
|
||||
2.3.0 (2014-01-01)
|
||||
------------------
|
||||
|
||||
- Fixes to make Pypy 2.1.0 work on Ubuntu 12.04/64 [wiredfool]
|
||||
|
||||
2.2.1 (2013-10-02)
|
||||
------------------
|
||||
|
||||
|
|
19
README.rst
19
README.rst
|
@ -147,6 +147,17 @@ Prerequisites are installed with on **Ubuntu 12.04 LTS** or **Raspian Wheezy 7.0
|
|||
|
||||
$ sudo apt-get install libtiff4-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms1-dev libwebp-dev tcl8.5-dev tk8.5-dev
|
||||
|
||||
Distributions
|
||||
^^^^^^^^^^^^^
|
||||
|
||||
.. Note:: XXX Provide links
|
||||
|
||||
Additionally, many Linux distributions now include Pillow (instead of PIL) with their distribution:
|
||||
|
||||
- Fedora
|
||||
- Debian/Ubuntu
|
||||
- ArchLinux
|
||||
|
||||
Mac OS X
|
||||
++++++++
|
||||
|
||||
|
@ -197,13 +208,13 @@ Current platform support for Pillow. Binary distributions are contributed for ea
|
|||
+----------------------------------+-------------+------------------------------+------------------------------+-----------------------+
|
||||
| Mac OS X 10.8 Mountain Lion |Yes | 2.6,2.7,3.2,3.3 | |x86-64 |
|
||||
+----------------------------------+-------------+------------------------------+------------------------------+-----------------------+
|
||||
| Mac OS X 10.7 Lion |Yes | 2.7 | 2.2.0 |x86-64 |
|
||||
| Mac OS X 10.7 Lion |Yes | 2.6,2.7,3.2,3.3 | 2.2.0 |x86-64 |
|
||||
+----------------------------------+-------------+------------------------------+------------------------------+-----------------------+
|
||||
| Redhat Linux 6 |Yes | 2.6 | |x86 |
|
||||
+----------------------------------+-------------+------------------------------+------------------------------+-----------------------+
|
||||
| Ubuntu Linux 10.04 LTS |Yes | 2.6 | 2.2.0 |x86,x86-64 |
|
||||
+----------------------------------+-------------+------------------------------+------------------------------+-----------------------+
|
||||
| Ubuntu Linux 12.04 LTS |Yes | 2.6,2.7,3.2,3.3 | 2.2.0 |x86,x86-64 |
|
||||
| Ubuntu Linux 12.04 LTS |Yes | 2.6,2.7,3.2,3.3,PyPy2.1 | 2.2.0 |x86,x86-64 |
|
||||
+----------------------------------+-------------+------------------------------+------------------------------+-----------------------+
|
||||
| Raspian Wheezy |Yes | 2.7,3.2 | 2.2.0 |arm |
|
||||
+----------------------------------+-------------+------------------------------+------------------------------+-----------------------+
|
||||
|
@ -213,11 +224,9 @@ Current platform support for Pillow. Binary distributions are contributed for ea
|
|||
+----------------------------------+-------------+------------------------------+------------------------------+-----------------------+
|
||||
| Windows Server 2008 R2 Enterprise|Yes | 3.3 | |x86-64 |
|
||||
+----------------------------------+-------------+------------------------------+------------------------------+-----------------------+
|
||||
| Windows 8 Pro |Yes | 2.6,2.7,3.2,3.3,PyPy1.9 [1]_ | 2.2.0 |x86 [2]_,x86-64 |
|
||||
| Windows 8 Pro |Yes | 2.6,2.7,3.2,3.3,3.4a3 | 2.2.0 |x86,x86-64 |
|
||||
+----------------------------------+-------------+------------------------------+------------------------------+-----------------------+
|
||||
|
||||
.. [1] x86 only, 2.1.0 tested
|
||||
.. [2] In some cases, x86 support may indicate 32-bit compilation on 64-bit architecture (vs. compilation on 32-bit hardware).
|
||||
|
||||
Port existing PIL-based code to Pillow
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
4
_webp.c
4
_webp.c
|
@ -54,6 +54,8 @@ PyObject* WebPEncode_wrapper(PyObject* self, PyObject* args)
|
|||
{
|
||||
WebPData output_data = {0};
|
||||
WebPData image = { output, ret_size };
|
||||
WebPData icc_profile = { icc_bytes, icc_size };
|
||||
WebPData exif = { exif_bytes, exif_size };
|
||||
WebPMuxError err;
|
||||
int dbg = 0;
|
||||
|
||||
|
@ -77,7 +79,6 @@ PyObject* WebPEncode_wrapper(PyObject* self, PyObject* args)
|
|||
if (dbg) {
|
||||
fprintf (stderr, "Adding ICC Profile\n");
|
||||
}
|
||||
WebPData icc_profile = { icc_bytes, icc_size };
|
||||
err = WebPMuxSetChunk(mux, "ICCP", &icc_profile, copy_data);
|
||||
if (dbg && err == WEBP_MUX_INVALID_ARGUMENT) {
|
||||
fprintf(stderr, "Invalid ICC Argument\n");
|
||||
|
@ -93,7 +94,6 @@ PyObject* WebPEncode_wrapper(PyObject* self, PyObject* args)
|
|||
if (dbg){
|
||||
fprintf (stderr, "Adding Exif Data\n");
|
||||
}
|
||||
WebPData exif = { exif_bytes, exif_size };
|
||||
err = WebPMuxSetChunk(mux, "EXIF", &exif, copy_data);
|
||||
if (dbg && err == WEBP_MUX_INVALID_ARGUMENT) {
|
||||
fprintf(stderr, "Invalid Exif Argument\n");
|
||||
|
|
Loading…
Reference in New Issue
Block a user