Skip to content

Commit 0779b49

Browse files
committed
Release notes 4.2.0 [ci skip]
1 parent 6e2a978 commit 0779b49

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

docs/releasenotes/4.2.0.rst

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,24 @@ dependencies: harfbuzz, fribidi, and raqm. See the install
1010
documentation for further details. This feature is tested and works on
1111
Un*x and Mac, but has not yet been built on Windows platforms.
1212

13+
New Optional Parameters
14+
=======================
15+
16+
* :py:meth:`PIL.ImageDraw.floodfill` has a new optional parameter:
17+
threshold. This specifies a tolerance for the color to replace with
18+
the flood fill.
19+
20+
* The TIFF and PDF image writers now support the ``append_images``
21+
optional parameter for specifying additional images to create
22+
multipage outputs.
23+
24+
New DecompressionBomb Warning
25+
=============================
26+
27+
:py:meth:`PIL.Image.Image.crop` now may raise a DecompressionBomb
28+
warning if the crop region enlarges the image over the threshold
29+
specified by :py:attr:`PIL.Image.MAX_PIXELS`.
30+
1331
Removed Deprecated Items
1432
========================
1533

@@ -24,3 +42,10 @@ Several deprecated items have been removed.
2442
discard the alpha channel. From Pillow 3.4.0, a deprecation warning
2543
was shown. From Pillow 4.2.0, the deprecation warning is removed and
2644
an :py:exc:`IOError` is raised.
45+
46+
Removed Core Image Function
47+
===========================
48+
49+
The unused function ``Image.core.new_array`` was removed. This is an
50+
internal function that should not have been used by user code, but it
51+
was accessible from the python layer.

0 commit comments

Comments
 (0)