Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/handbook/image-file-formats.rst
Original file line number Diff line number Diff line change
Expand Up @@ -955,6 +955,13 @@ The :py:meth:`~PIL.Image.Image.save` method supports the following options:
When ``optimize`` option is True ``compress_level`` has no effect
(it is set to 9 regardless of a value passed).

**compress_type**
ZLIB compression strategy, one of the strategy constants from Python's
:py:mod:`zlib` module: ``zlib.Z_DEFAULT_STRATEGY`` (0), ``zlib.Z_FILTERED`` (1),
``zlib.Z_HUFFMAN_ONLY`` (2), ``zlib.Z_RLE`` (3) or ``zlib.Z_FIXED`` (4). For ``P``
images, defaults to ``zlib.Z_DEFAULT_STRATEGY`` (0). Otherwise defaults to
``zlib.Z_FILTERED`` (1).

**icc_profile**
The ICC Profile to include in the saved file.

Expand Down
Loading