Skip to content

Commit

Permalink
Documented updates to DDS format
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Jun 14, 2021
1 parent 6449cdc commit 2afc6fd
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions docs/handbook/image-file-formats.rst
Expand Up @@ -39,6 +39,13 @@ The :py:meth:`~PIL.Image.open` method sets the following
**compression**
Set to ``bmp_rle`` if the file is run-length encoded.

DDS
^^^

DDS is a popular container texture format used in video games and natively supported
by DirectX. Uncompressed RGB and RGBA can be read, and (since 8.3.0) written. DXT1,
DXT3 (since 3.4.0) and DXT5 pixel formats can be read, only in ``RGBA`` mode.

DIB
^^^

Expand Down Expand Up @@ -1042,17 +1049,6 @@ is commonly used in fax applications. The DCX decoder can read files containing
When the file is opened, only the first image is read. You can use
:py:meth:`~PIL.Image.Image.seek` or :py:mod:`~PIL.ImageSequence` to read other images.


DDS
^^^

DDS is a popular container texture format used in video games and natively
supported by DirectX.
Currently, uncompressed RGB data and DXT1, DXT3, and DXT5 pixel formats are
supported, and only in ``RGBA`` mode.

.. versionadded:: 3.4.0 DXT3

FLI, FLC
^^^^^^^^

Expand Down

0 comments on commit 2afc6fd

Please sign in to comment.