mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-04-13 22:04:18 +03:00
Document how to restore original setting
This commit is contained in:
parent
a7d36ef1f1
commit
24054d8fcc
|
@ -129,6 +129,12 @@ available::
|
|||
from PIL import GifImagePlugin
|
||||
GifImagePlugin.LOADING_STRATEGY = GifImagePlugin.LoadingStrategy.RGB_AFTER_DIFFERENT_PALETTE_ONLY
|
||||
|
||||
To restore the default behavior, where ``P`` mode images are only converted to
|
||||
``RGB`` or ``RGBA`` after the first frame::
|
||||
|
||||
from PIL import GifImagePlugin
|
||||
GifImagePlugin.LOADING_STRATEGY = GifImagePlugin.LoadingStrategy.RGB_AFTER_FIRST
|
||||
|
||||
The :py:meth:`~PIL.Image.open` method sets the following
|
||||
:py:attr:`~PIL.Image.Image.info` properties:
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user