mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-24 17:06:16 +03:00
DOC document compress_level Image.save PNG option.
This commit is contained in:
parent
264f5d0d96
commit
4713b41ed7
|
@ -357,6 +357,12 @@ The :py:meth:`~PIL.Image.Image.save` method supports the following options:
|
|||
**pnginfo**
|
||||
A :py:class:`PIL.PngImagePlugin.PngInfo` instance containing text tags.
|
||||
|
||||
**compress_level**
|
||||
ZLIB compression level, a number between 0 and 9: 1 gives best speed,
|
||||
9 gives best compression, 0 gives no compression at all. Default is 6.
|
||||
When ``optimize`` option is True ``compress_level`` has no effect
|
||||
(it is set to 9 regardless of a value passed).
|
||||
|
||||
**bits (experimental)**
|
||||
For ``P`` images, this option controls how many bits to store. If omitted,
|
||||
the PNG writer uses 8 bits (256 colors).
|
||||
|
|
Loading…
Reference in New Issue
Block a user