From 0779b49c0ff91e984d493eac5ddc86817578eeda Mon Sep 17 00:00:00 2001 From: wiredfool Date: Sat, 1 Jul 2017 03:30:48 -0700 Subject: [PATCH 1/3] Release notes 4.2.0 [ci skip] --- docs/releasenotes/4.2.0.rst | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/docs/releasenotes/4.2.0.rst b/docs/releasenotes/4.2.0.rst index 2bd2cbe5b..26f91c1a2 100644 --- a/docs/releasenotes/4.2.0.rst +++ b/docs/releasenotes/4.2.0.rst @@ -10,6 +10,24 @@ dependencies: harfbuzz, fribidi, and raqm. See the install documentation for further details. This feature is tested and works on Un*x and Mac, but has not yet been built on Windows platforms. +New Optional Parameters +======================= + +* :py:meth:`PIL.ImageDraw.floodfill` has a new optional parameter: + threshold. This specifies a tolerance for the color to replace with + the flood fill. + +* The TIFF and PDF image writers now support the ``append_images`` + optional parameter for specifying additional images to create + multipage outputs. + +New DecompressionBomb Warning +============================= + +:py:meth:`PIL.Image.Image.crop` now may raise a DecompressionBomb +warning if the crop region enlarges the image over the threshold +specified by :py:attr:`PIL.Image.MAX_PIXELS`. + Removed Deprecated Items ======================== @@ -24,3 +42,10 @@ Several deprecated items have been removed. discard the alpha channel. From Pillow 3.4.0, a deprecation warning was shown. From Pillow 4.2.0, the deprecation warning is removed and an :py:exc:`IOError` is raised. + +Removed Core Image Function +=========================== + +The unused function ``Image.core.new_array`` was removed. This is an +internal function that should not have been used by user code, but it +was accessible from the python layer. From b139b46046d5a1e6548119788d46359126c2ffd4 Mon Sep 17 00:00:00 2001 From: wiredfool Date: Sat, 1 Jul 2017 04:34:46 -0700 Subject: [PATCH 2/3] Test matrix updates --- docs/installation.rst | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/installation.rst b/docs/installation.rst index f335080b8..e1837eb59 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -368,6 +368,10 @@ These platforms are built and tested for every change. +----------------------------------+-------------------------------+-----------------------+ | Arch | 2.7 |x86-64 | +----------------------------------+-------------------------------+-----------------------+ +| Amazon | 2.7 |x86-64 | ++----------------------------------+-------------------------------+-----------------------+ +| Centos 6 | 2.7 |x86-64 | ++----------------------------------+-------------------------------+-----------------------+ | Debian Stretch | 2.7 |x86 | +----------------------------------+-------------------------------+-----------------------+ | Mac OS X 10.10 Yosemite* | 2.7, 3.3, 3.4, 3.5, 3.6 |x86-64 | @@ -426,9 +430,9 @@ These platforms have been reported to work at the versions mentioned. +----------------------------------+------------------------------+--------------------------------+-----------------------+ | Gentoo Linux | 2.7,3.2 | 2.1.0 |x86-64 | +----------------------------------+------------------------------+--------------------------------+-----------------------+ -| FreeBSD 11.0 | 2.7,3.4,3.5,3.6 | 4.1.1 |x86-64 | +| FreeBSD 11.0 | 2.7,3.4,3.5,3.6 | 4.2.0 |x86-64 | +----------------------------------+------------------------------+--------------------------------+-----------------------+ -| FreeBSD 10.3 | 2.7,3.4,3.5 | 4.1.1 |x86-64 | +| FreeBSD 10.3 | 2.7,3.4,3.5 | 4.2.0 |x86-64 | +----------------------------------+------------------------------+--------------------------------+-----------------------+ | FreeBSD 10.2 | 2.7,3.4 | 3.1.0 |x86-64 | +----------------------------------+------------------------------+--------------------------------+-----------------------+ From d48d635c8173a0475657a0b3cc4c170f2b4355f6 Mon Sep 17 00:00:00 2001 From: wiredfool Date: Sat, 1 Jul 2017 04:36:08 -0700 Subject: [PATCH 3/3] Remove callout for Ubuntu 12.04, EOL --- docs/installation.rst | 6 ------ 1 file changed, 6 deletions(-) diff --git a/docs/installation.rst b/docs/installation.rst index e1837eb59..dd8e5a3c8 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -325,12 +325,6 @@ Or for Python 3:: .. Note:: ``redhat-rpm-config`` is required on Fedora 23, but not earlier versions. -Prerequisites are installed on **Ubuntu 12.04 LTS** or **Raspian Wheezy -7.0** with:: - - $ sudo apt-get install libtiff4-dev libjpeg8-dev zlib1g-dev \ - libfreetype6-dev liblcms2-dev libwebp-dev tcl8.5-dev tk8.5-dev python-tk - Prerequisites are installed on **Ubuntu 14.04 LTS** with:: $ sudo apt-get install libtiff5-dev libjpeg8-dev zlib1g-dev \