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

5.4.1 (2019-01-06)

This release fixes regressions in 5.4.0.

Installation on Termux

A change to the way Pillow detects libraries during installed preventedinstallation on Termux, which does not have/sbin/ldconfig. This is nowfixed.

PNG: Handle IDAT chunks after image end

Some PNG images have multiple IDAT chunks. In some cases, Pillow will stopreading image data before the IDAT chunks finish. A regression caused anEOFError exception when previously there was none. This is now fixed, andfile reading continues in case there are subsequent text chunks.

PNG: MIME type

The addition of limited APNG support to the PNG plugin also overwrote the MIMEtype for PNG files, causing “image/apng” to be returned as the MIME type ofboth APNG and PNG files. This has been fixed so the MIME type of PNG files is“image/png”.

File closing

A regression caused an unsupported image file to report aValueError:seekofclosedfile exception instead of anOSError. Thishas been fixed by ensuring that image plugins only close their internal__fpif they are not the same asImageFile’sfp, allowing each to manage their ownfile pointers.

On this page

[8]ページ先頭

©2009-2025 Movatter.jp