Pillow/docs/releasenotes/10.1.0.rst

66 lines
1.4 KiB
ReStructuredText
Raw Normal View History

2023-07-31 14:06:16 +03:00
10.1.0
------
Backwards Incompatible Changes
==============================
Setting image mode
^^^^^^^^^^^^^^^^^^
If you attempt to set the mode of an image directly, e.g.
``im.mode = "RGBA"``, you will now receive an ``AttributeError``. This is
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
===========
TODO
^^^^
TODO
API Additions
=============
2023-09-30 03:14:10 +03:00
has_transparency_data
^^^^^^^^^^^^^^^^^^^^^
2023-07-31 14:06:16 +03:00
2023-09-30 03:14:10 +03:00
Images now have :py:attr:`~PIL.Image.Image.has_transparency_data` to indicate
whether the image has transparency data, whether in the form of an alpha
channel, a palette with an alpha channel, or a "transparency" key in the
:py:attr:`~PIL.Image.Image.info` dictionary.
Even if this attribute is true, the image might still appear solid, if all of
the values shown within are opaque.
2023-07-31 14:06:16 +03:00
Security
========
TODO
^^^^
TODO
Other Changes
=============
2023-09-30 04:32:54 +03:00
Added support for DDS 8-bit color indexed images
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-07-31 14:06:16 +03:00
2023-09-30 04:32:54 +03:00
Support has been added to read PALETTEINDEXED8 DDS files as P mode images.
2023-10-06 03:40:05 +03:00
2023-10-06 02:02:35 +03:00
Support reading signed 8-bit YCbCr TIFF images
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-07-31 14:06:16 +03:00
2023-10-06 02:02:35 +03:00
TIFF images with unsigned integer data, 8 bits per sample and a photometric
2023-10-06 03:40:05 +03:00
interpretation of YCbCr can now be read.