mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-19 13:00:56 +03:00
Documentation Update for PNG zlib DOS
This commit is contained in:
parent
43f6291cfd
commit
61ee1d9ccc
|
@ -332,6 +332,14 @@ The :py:meth:`~PIL.Image.Image.open` method sets the following
|
|||
Transparency color index. This key is omitted if the image is not a
|
||||
transparent palette image.
|
||||
|
||||
``Open`` also sets ``Image.text`` to a list of the values of the
|
||||
``tEXt``, ``zTXt``, and ``iTXt`` chunks of the PNG image. Individual
|
||||
compressed chunks are limited to a decompressed size of
|
||||
``PngImagePlugin.MAX_TEXT_CHUNK``, by default 1MB, to prevent
|
||||
decompression bombs. Additionally, the total size of all of the text
|
||||
chunks is limited to ``PngImagePlugin.MAX_TEXT_MEMORY``, defaulting to
|
||||
64MB.
|
||||
|
||||
The :py:meth:`~PIL.Image.Image.save` method supports the following options:
|
||||
|
||||
**optimize**
|
||||
|
|
Loading…
Reference in New Issue
Block a user