2024-04-22 12:16:55 +03:00
|
|
|
10.4.0
|
|
|
|
------
|
|
|
|
|
|
|
|
Security
|
|
|
|
========
|
|
|
|
|
2024-06-28 14:27:44 +03:00
|
|
|
ImageShow.WindowsViewer.show_file
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2024-04-22 12:16:55 +03:00
|
|
|
|
2024-06-28 14:27:44 +03:00
|
|
|
If an attacker has control over the ``path`` passed to
|
|
|
|
``ImageShow.WindowsViewer.show_file()``, they may be able to
|
|
|
|
execute arbitrary shell commands.
|
2024-04-22 12:16:55 +03:00
|
|
|
|
2024-06-28 14:27:44 +03:00
|
|
|
To prevent this, a :py:exc:`FileNotFoundError` will be raised if the ``path``
|
|
|
|
does not exist as a file. To provide a consistent experience, the error has
|
|
|
|
been added to all :py:class:`~PIL.ImageShow` viewers.
|
2024-04-22 12:16:55 +03:00
|
|
|
|
|
|
|
Deprecations
|
|
|
|
============
|
|
|
|
|
2024-04-25 02:14:48 +03:00
|
|
|
BGR;15, BGR 16 and BGR;24
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
The experimental BGR;15, BGR;16 and BGR;24 modes have been deprecated.
|
|
|
|
|
2024-06-12 15:44:03 +03:00
|
|
|
Non-image modes in ImageCms
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
The use in :py:mod:`.ImageCms` of input modes and output modes that are not Pillow
|
|
|
|
image modes has been deprecated. Defaulting to "L" or "1" if the mode cannot be mapped
|
|
|
|
is also deprecated.
|
|
|
|
|
2024-04-22 12:16:55 +03:00
|
|
|
Support for LibTIFF earlier than 4
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
Support for LibTIFF earlier than version 4 has been deprecated.
|
|
|
|
Upgrade to a newer version of LibTIFF instead.
|
|
|
|
|
2024-06-10 09:47:18 +03:00
|
|
|
ImageDraw.getdraw hints parameter
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2024-06-10 04:50:13 +03:00
|
|
|
|
2024-06-10 09:47:18 +03:00
|
|
|
The ``hints`` parameter in :py:meth:`~PIL.ImageDraw.getdraw()` has been deprecated.
|
2024-06-10 04:50:13 +03:00
|
|
|
|
2024-04-22 12:16:55 +03:00
|
|
|
API Additions
|
|
|
|
=============
|
|
|
|
|
2024-05-27 14:48:38 +03:00
|
|
|
ImageDraw.circle
|
|
|
|
^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
Added :py:meth:`~PIL.ImageDraw.ImageDraw.circle`. It provides the same functionality as
|
|
|
|
:py:meth:`~PIL.ImageDraw.ImageDraw.ellipse`, but instead of taking a bounding box, it
|
|
|
|
takes a center point and radius.
|
2024-05-27 14:14:04 +03:00
|
|
|
|
2024-04-22 12:16:55 +03:00
|
|
|
Other Changes
|
|
|
|
=============
|
|
|
|
|
2024-05-22 04:50:10 +03:00
|
|
|
Python 3.13 beta
|
|
|
|
^^^^^^^^^^^^^^^^
|
2024-04-22 12:16:55 +03:00
|
|
|
|
2024-05-22 04:50:10 +03:00
|
|
|
To help others prepare for Python 3.13, wheels have been built against the 3.13 beta as
|
|
|
|
a preview. This is not official support for Python 3.13, but simply an opportunity for
|
|
|
|
users to test how Pillow works with the beta and report any problems.
|