mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-03-13 17:25:49 +03:00
Added release notes for #7392
This commit is contained in:
parent
0d7fb401e0
commit
82bcedb860
|
@ -13,21 +13,13 @@ not about removing existing functionality, but instead about raising an
|
|||
explicit error to prevent later consequences. The ``convert`` method is the
|
||||
correct way to change an image's mode.
|
||||
|
||||
Deprecations
|
||||
============
|
||||
|
||||
TODO
|
||||
^^^^
|
||||
|
||||
TODO
|
||||
|
||||
API Changes
|
||||
===========
|
||||
|
||||
Accept a list in getpixel()
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
py:meth:`~PIL.Image.Image.getpixel` now accepts a list of coordinates, as well
|
||||
:py:meth:`~PIL.Image.Image.getpixel` now accepts a list of coordinates, as well
|
||||
as a tuple. ::
|
||||
|
||||
from PIL import Image
|
||||
|
@ -38,9 +30,9 @@ as a tuple. ::
|
|||
BoxBlur and GaussianBlur allow for different x and y radii
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
py:meth:`~PIL.ImageFilter.BoxBlur` and py:meth:`~PIL.ImageFilter.GaussianBlur`
|
||||
now allow a sequence of x and y radii to be specified, rather than a single
|
||||
number for both dimensions. ::
|
||||
:py:class:`~PIL.ImageFilter.BoxBlur` and
|
||||
:py:class:`~PIL.ImageFilter.GaussianBlur` now allow a sequence of x and y radii
|
||||
to be specified, rather than a single number for both dimensions. ::
|
||||
|
||||
from PIL import ImageFilter
|
||||
ImageFilter.BoxBlur((2, 5))
|
||||
|
@ -49,6 +41,14 @@ number for both dimensions. ::
|
|||
API Additions
|
||||
=============
|
||||
|
||||
EpsImagePlugin.gs_binary
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
``EpsImagePlugin.gs_windows_binary`` stores the name of the Ghostscript
|
||||
executable on Windows. ``EpsImagePlugin.gs_binary`` has now been added for all
|
||||
platforms, and can be used to customise the name of the executable, or disable
|
||||
use entirely through ``EpsImagePlugin.gs_binary = False``.
|
||||
|
||||
has_transparency_data
|
||||
^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
|
@ -60,14 +60,6 @@ channel, a palette with an alpha channel, or a "transparency" key in the
|
|||
Even if this attribute is true, the image might still appear solid, if all of
|
||||
the values shown within are opaque.
|
||||
|
||||
Security
|
||||
========
|
||||
|
||||
TODO
|
||||
^^^^
|
||||
|
||||
TODO
|
||||
|
||||
Other Changes
|
||||
=============
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user