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

10.4.0 (2024-07-01)

Security

ImageShow.WindowsViewer.show_file

If an attacker has control over thepath passed toImageShow.WindowsViewer.show_file(), they may be able toexecute arbitrary shell commands.

To prevent this, aFileNotFoundError will be raised if thepathdoes not exist as a file. To provide a consistent experience, the error hasbeen added to allImageShow viewers.

Deprecations

BGR;15, BGR 16 and BGR;24

The experimental BGR;15, BGR;16 and BGR;24 modes have been deprecated.

Non-image modes in ImageCms

The use inImageCms of input modes and output modes that are not Pillowimage modes has been deprecated. Defaulting to “L” or “1” if the mode cannot be mappedis also deprecated.

Support for LibTIFF earlier than 4

Support for LibTIFF earlier than version 4 has been deprecated.Upgrade to a newer version of LibTIFF instead.

ImageDraw.getdraw hints parameter

Thehints parameter ingetdraw() has been deprecated.

API additions

ImageDraw.circle

Addedcircle(). It provides the same functionality asellipse(), but instead of taking a bounding box, ittakes a center point and radius.

Other changes

Python 3.13 beta

To help others prepare for Python 3.13, wheels have been built against the 3.13 beta asa preview. This is not official support for Python 3.13, but simply an opportunity forusers to test how Pillow works with the beta and report any problems.

On this page

[8]ページ先頭

©2009-2025 Movatter.jp