Skip to content

Commit b6348d9

Browse files
authored
Merge pull request #6546 from radarhere/tga_docs
Documented TGA save keyword arguments
2 parents 3f960d9 + 5996378 commit b6348d9

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/handbook/image-file-formats.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -837,6 +837,24 @@ Pillow reads and writes TGA images containing ``L``, ``LA``, ``P``,
837837
``RGB``, and ``RGBA`` data. Pillow can read and write both uncompressed and
838838
run-length encoded TGAs.
839839

840+
The :py:meth:`~PIL.Image.Image.save` method can take the following keyword arguments:
841+
842+
**compression**
843+
If set to "tga_rle", the file will be run-length encoded.
844+
845+
.. versionadded:: 5.3.0
846+
847+
**id_section**
848+
The identification field.
849+
850+
.. versionadded:: 5.3.0
851+
852+
**orientation**
853+
If present and a positive number, the first pixel is for the top left corner,
854+
rather than the bottom left corner.
855+
856+
.. versionadded:: 5.3.0
857+
840858
TIFF
841859
^^^^
842860

0 commit comments

Comments
 (0)