枕头现在支持复杂的文本渲染脚本需要字形合成和双向流动。此可选功能添加了三个依赖项:harfbuzz、fribidi和raqm。见 install documentation 更多详情。此功能在Unix和Mac上测试并运行,但尚未在Windows平台上构建。
PIL.ImageDraw.floodfill()
has a new optional parameter:
threshold. This specifies a tolerance for the color to replace with
the flood fill.append_images
用于指定其他图像以创建多页输出的可选参数。PIL.Image.Image.crop()
now may raise a DecompressionBomb
warning if the crop region enlarges the image over the threshold
specified by PIL.Image.MAX_PIXELS
.
已删除几个不推荐使用的项。
PIL.ImageWin.Dib.fromstring()
, PIL.ImageWin.Dib.tostring()
和 PIL.TiffImagePlugin.ImageFileDirectory_v2.as_dict()
已被删除。IOError
提高了。未使用的函数 Image.core.new_array
被移除。这是一个内部函数,用户代码不应该使用它,但可以从Python层访问它。