Skip to content

Commit

Permalink
Merge pull request #6546 from radarhere/tga_docs
Browse files Browse the repository at this point in the history
Documented TGA save keyword arguments
  • Loading branch information
hugovk committed Sep 4, 2022
2 parents 3f960d9 + 5996378 commit b6348d9
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/handbook/image-file-formats.rst
Expand Up @@ -837,6 +837,24 @@ Pillow reads and writes TGA images containing ``L``, ``LA``, ``P``,
``RGB``, and ``RGBA`` data. Pillow can read and write both uncompressed and
run-length encoded TGAs.

The :py:meth:`~PIL.Image.Image.save` method can take the following keyword arguments:

**compression**
If set to "tga_rle", the file will be run-length encoded.

.. versionadded:: 5.3.0

**id_section**
The identification field.

.. versionadded:: 5.3.0

**orientation**
If present and a positive number, the first pixel is for the top left corner,
rather than the bottom left corner.

.. versionadded:: 5.3.0

TIFF
^^^^

Expand Down

0 comments on commit b6348d9

Please sign in to comment.