2021-08-01 02:54:40 +03:00
|
|
|
8.4.0
|
|
|
|
-----
|
|
|
|
|
|
|
|
Deprecations
|
2024-03-17 14:06:56 +03:00
|
|
|
============
|
2021-08-01 02:54:40 +03:00
|
|
|
|
|
|
|
ImagePalette size parameter
|
2024-03-17 14:06:56 +03:00
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2021-08-01 02:54:40 +03:00
|
|
|
|
2021-10-18 15:48:49 +03:00
|
|
|
The ``size`` parameter will be removed in Pillow 10.0.0 (2023-07-01).
|
2021-08-01 02:54:40 +03:00
|
|
|
|
|
|
|
Before Pillow 8.3.0, ``ImagePalette`` required palette data of particular lengths by
|
|
|
|
default, and the size parameter could be used to override that. Pillow 8.3.0 removed
|
|
|
|
the default required length, also removing the need for the size parameter.
|
|
|
|
|
|
|
|
API Additions
|
|
|
|
=============
|
|
|
|
|
2021-08-06 15:41:44 +03:00
|
|
|
Added "transparency" argument for loading EPS images
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
This new argument switches the Ghostscript device from "ppmraw" to "pngalpha",
|
|
|
|
generating an RGBA image with a transparent background instead of an RGB image with a
|
2023-02-24 00:17:10 +03:00
|
|
|
white background. ::
|
2021-08-06 15:41:44 +03:00
|
|
|
|
|
|
|
with Image.open("sample.eps") as im:
|
|
|
|
im.load(transparency=True)
|
2021-08-01 02:54:40 +03:00
|
|
|
|
2021-08-06 15:33:55 +03:00
|
|
|
Added WalImageFile class
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^
|
2021-08-01 02:54:40 +03:00
|
|
|
|
2021-08-06 15:33:55 +03:00
|
|
|
:py:func:`PIL.WalImageFile.open()` previously returned a generic
|
|
|
|
:py:class:`PIL.Image.Image` instance. It now returns a dedicated
|
|
|
|
:py:class:`PIL.WalImageFile.WalImageFile` class.
|
2021-08-01 02:54:40 +03:00
|
|
|
|
|
|
|
Other Changes
|
|
|
|
=============
|
|
|
|
|
2021-08-02 17:03:53 +03:00
|
|
|
Speed improvement when rotating square images
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2021-08-01 02:54:40 +03:00
|
|
|
|
2021-08-02 17:03:53 +03:00
|
|
|
Starting with Pillow 3.3.0, the speed of rotating images by 90 or 270 degrees was
|
|
|
|
improved by quickly returning :py:meth:`~PIL.Image.Image.transpose` instead, if the
|
|
|
|
rotate operation allowed for expansion and did not specify a center or post-rotate
|
|
|
|
translation.
|
|
|
|
|
|
|
|
Since the ``expand`` flag makes no difference for square images though, Pillow now
|
|
|
|
uses this faster method for square images without the ``expand`` flag as well.
|