2.7.0 (2014-12-31)
Sane plugin
The Sane plugin has now been split into its own repo: https://github.com/python-pillow/Sane .
PNG text chunk size limits
To prevent potential denial of service attacks using compressed text
chunks, there are now limits to the decompressed size of text chunks
decoded from PNG images. If the limits are exceeded when opening a PNG
image a ValueError will be raised.
Individual text chunks are limited to
PIL.PngImagePlugin.MAX_TEXT_CHUNK, set to 1MB by
default. The total decompressed size of all text chunks is limited to
PIL.PngImagePlugin.MAX_TEXT_MEMORY, which defaults to
64MB. These values can be changed prior to opening PNG images if you
know that there are large text blocks that are desired.