Movatterモバイル変換


[0]ホーム

URL:


ContentsMenuExpandLight modeDark modeAuto light/dark, in light modeAuto light/dark, in dark modeSkip to content
Pillow (PIL Fork) 12.0.0 documentation
Light LogoDark Logo
Pillow (PIL Fork) 12.0.0 documentation
Back to top

8.4.0 (2021-10-15)

Deprecations

ImagePalette size parameter

Thesize parameter will be removed in Pillow 10.0.0 (2023-07-01).

Before Pillow 8.3.0,ImagePalette required palette data of particular lengths bydefault, and the size parameter could be used to override that. Pillow 8.3.0 removedthe default required length, also removing the need for the size parameter.

API additions

Added “transparency” argument for loading EPS images

This new argument switches the Ghostscript device from “ppmraw” to “pngalpha”,generating an RGBA image with a transparent background instead of an RGB image with awhite background.

withImage.open("sample.eps")asim:im.load(transparency=True)

Added WalImageFile class

PIL.WalImageFile.open() previously returned a genericPIL.Image.Image instance. It now returns a dedicatedPIL.WalImageFile.WalImageFile class.

Other changes

Speed improvement when rotating square images

Starting with Pillow 3.3.0, the speed of rotating images by 90 or 270 degrees wasimproved by quickly returningtranspose() instead, if therotate operation allowed for expansion and did not specify a center or post-rotatetranslation.

Since theexpand flag makes no difference for square images though, Pillow nowuses this faster method for square images without theexpand flag as well.

On this page

[8]ページ先頭

©2009-2025 Movatter.jp