Pillow/docs/releasenotes/11.2.0.rst

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

76 lines
1.5 KiB
ReStructuredText
Raw Normal View History

2025-01-17 10:57:12 +03:00
11.2.0
------
Security
========
TODO
^^^^
TODO
:cve:`YYYY-XXXXX`: TODO
^^^^^^^^^^^^^^^^^^^^^^^
TODO
Backwards Incompatible Changes
==============================
TODO
^^^^
Deprecations
============
2025-01-17 10:34:23 +03:00
Image.Image.get_child_images()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-01-17 10:57:12 +03:00
2025-01-17 10:34:23 +03:00
.. deprecated:: 11.2.0
``Image.Image.get_child_images()`` has been deprecated. and will be removed in Pillow
13 (2026-10-15). It will be moved to ``ImageFile.ImageFile.get_child_images()``. The
method uses an image's file pointer, and so child images could only be retrieved from
an :py:class:`PIL.ImageFile.ImageFile` instance.
2025-01-17 10:57:12 +03:00
API Changes
===========
TODO
^^^^
TODO
API Additions
=============
``"justify"`` multiline text alignment
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-01-31 16:47:21 +03:00
In addition to ``"left"``, ``"center"`` and ``"right"``, multiline text can also be aligned using
``"justify"``::
2025-01-31 16:47:21 +03:00
from PIL import Image, ImageDraw
im = Image.new("RGB", (50, 25))
draw = ImageDraw.Draw(im)
draw.multiline_text((0, 0), "Multiline\ntext 1", align="justify")
draw.multiline_textbbox((0, 0), "Multiline\ntext 2", align="justify")
2025-01-17 23:55:49 +03:00
Check for MozJPEG
2025-01-17 10:57:12 +03:00
^^^^^^^^^^^^^^^^^
You can check if Pillow has been built against the MozJPEG version of the
2025-01-17 23:55:49 +03:00
libjpeg library, and what version of MozJPEG is being used::
2025-01-17 10:57:12 +03:00
from PIL import features
features.check_feature("mozjpeg") # True or False
features.version_feature("mozjpeg") # "4.1.1" for example, or None
Other Changes
=============
TODO
^^^^
TODO