Skip to content

Commit

Permalink
GIFs change mode for later frames [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Nov 29, 2021
1 parent 1fb1bec commit eeb685b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/handbook/image-file-formats.rst
Expand Up @@ -91,8 +91,9 @@ Pillow reads GIF87a and GIF89a versions of the GIF file format. The library
writes run-length encoded files in GIF87a by default, unless GIF89a features
are used or GIF89a is already in use.

Note that GIF files are always read as grayscale (``L``)
or palette mode (``P``) images.
GIF files are initially read as grayscale (``L``) or palette mode (``P``)
images, but seeking to later frames in an image will change the mode to either
``RGB`` or ``RGBA``, depending on whether the first frame had transparency.

The :py:meth:`~PIL.Image.open` method sets the following
:py:attr:`~PIL.Image.Image.info` properties:
Expand Down

0 comments on commit eeb685b

Please sign in to comment.