mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
Release notes 4.2.0 [ci skip]
This commit is contained in:
parent
6e2a978319
commit
0779b49c0f
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user