2022-04-16 18:36:21 +03:00
|
|
|
9.2.0
|
|
|
|
-----
|
|
|
|
|
|
|
|
Backwards Incompatible Changes
|
|
|
|
==============================
|
|
|
|
|
|
|
|
TODO
|
|
|
|
^^^^
|
|
|
|
|
|
|
|
Deprecations
|
|
|
|
============
|
|
|
|
|
2022-04-22 12:06:20 +03:00
|
|
|
PyQt5 and PySide2
|
|
|
|
^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
.. deprecated:: 9.2.0
|
|
|
|
|
|
|
|
`Qt 5 reached end-of-life <https://www.qt.io/blog/qt-5.15-released>`_ on 2020-12-08 for
|
|
|
|
open-source users (and will reach EOL on 2023-12-08 for commercial licence holders).
|
|
|
|
|
|
|
|
Support for PyQt5 and PySide2 has been deprecated from ``ImageQt`` and will be removed
|
|
|
|
in Pillow 10 (2023-07-01). Upgrade to
|
|
|
|
`PyQt6 <https://www.riverbankcomputing.com/static/Docs/PyQt6/>`_ or
|
|
|
|
`PySide6 <https://doc.qt.io/qtforpython/>`_ instead.
|
|
|
|
|
2022-04-16 18:36:21 +03:00
|
|
|
FreeTypeFont.getmask2 fill parameter
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2022-04-22 12:06:20 +03:00
|
|
|
.. deprecated:: 9.2.0
|
|
|
|
|
2022-04-16 18:36:21 +03:00
|
|
|
The undocumented ``fill`` parameter of :py:meth:`.FreeTypeFont.getmask2`
|
|
|
|
has been deprecated and will be removed in Pillow 10 (2023-07-01).
|
|
|
|
|
2022-06-03 12:01:36 +03:00
|
|
|
PhotoImage.paste box parameter
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
.. deprecated:: 9.2.0
|
|
|
|
|
|
|
|
The ``box`` parameter is unused. It will be removed in Pillow 10.0.0 (2023-07-01).
|
|
|
|
|
2022-05-17 10:31:18 +03:00
|
|
|
Image.coerce_e
|
2022-06-03 12:01:36 +03:00
|
|
|
^^^^^^^^^^^^^^
|
2022-05-17 10:31:18 +03:00
|
|
|
|
|
|
|
.. deprecated:: 9.2.0
|
|
|
|
|
|
|
|
This undocumented method has been deprecated and will be removed in Pillow 10
|
|
|
|
(2023-07-01).
|
|
|
|
|
2022-04-16 18:36:21 +03:00
|
|
|
API Changes
|
|
|
|
===========
|
|
|
|
|
|
|
|
TODO
|
|
|
|
^^^^
|
|
|
|
|
|
|
|
TODO
|
|
|
|
|
|
|
|
API Additions
|
|
|
|
=============
|
|
|
|
|
2022-06-11 15:31:07 +03:00
|
|
|
Image.apply_transparency
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-04-16 18:36:21 +03:00
|
|
|
|
2022-06-11 15:31:07 +03:00
|
|
|
Added :py:meth:`~PIL.Image.Image.apply_transparency`, a method to take a P mode image
|
|
|
|
with "transparency" in ``im.info``, and apply the transparency to the palette instead.
|
|
|
|
The image's palette mode will become "RGBA", and "transparency" will be removed from
|
|
|
|
``im.info``.
|
2022-04-16 18:36:21 +03:00
|
|
|
|
|
|
|
Security
|
|
|
|
========
|
|
|
|
|
|
|
|
TODO
|
|
|
|
^^^^
|
|
|
|
|
|
|
|
TODO
|
|
|
|
|
|
|
|
Other Changes
|
|
|
|
=============
|
|
|
|
|
2022-06-13 03:16:30 +03:00
|
|
|
Using gnome-screenshot on Linux
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-04-16 18:36:21 +03:00
|
|
|
|
2022-06-13 03:16:30 +03:00
|
|
|
In :py:meth:`~PIL.ImageGrab.grab` on Linux, if ``xdisplay`` is ``None`` then
|
|
|
|
``gnome-screenshot`` will be used to capture the display if it is installed. To capture
|
|
|
|
the default X11 display instead, pass ``xdisplay=""``.
|