mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 04:07:21 +03:00
Added release notes
This commit is contained in:
parent
5fb1ff6369
commit
a7d36ef1f1
|
@ -160,6 +160,26 @@ Added PyEncoder
|
||||||
written in Python. See :ref:`Writing Your Own File Codec in Python<file-codecs-py>` for
|
written in Python. See :ref:`Writing Your Own File Codec in Python<file-codecs-py>` for
|
||||||
more information.
|
more information.
|
||||||
|
|
||||||
|
GifImagePlugin loading strategy
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
Pillow 9.0.0 introduced the conversion of subsequent GIF frames to ``RGB`` or ``RGBA``. This
|
||||||
|
behaviour can now be changed so that the first ``P`` frame is converted to ``RGB`` as
|
||||||
|
well.
|
||||||
|
|
||||||
|
.. code-block:: python
|
||||||
|
|
||||||
|
from PIL import GifImagePlugin
|
||||||
|
GifImagePlugin.LOADING_STRATEGY = GifImagePlugin.LoadingStrategy.RGB_ALWAYS
|
||||||
|
|
||||||
|
Or subsequent frames can be kept in ``P`` mode as long as there is only a single
|
||||||
|
palette.
|
||||||
|
|
||||||
|
.. code-block:: python
|
||||||
|
|
||||||
|
from PIL import GifImagePlugin
|
||||||
|
GifImagePlugin.LOADING_STRATEGY = GifImagePlugin.LoadingStrategy.RGB_AFTER_DIFFERENT_PALETTE_ONLY
|
||||||
|
|
||||||
Other Changes
|
Other Changes
|
||||||
=============
|
=============
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user