Skip to content

Commit

Permalink
Document how to restore original setting
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Mar 29, 2022
1 parent a7d36ef commit 24054d8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/handbook/image-file-formats.rst
Expand Up @@ -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:

Expand Down

0 comments on commit 24054d8

Please sign in to comment.