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

3.4.0 (2016-10-03)

Backwards incompatible changes

Image.core.open_ppm removed

The nominally private/debugging functionImage.core.open_ppm hasbeen removed. If you were using this function, please useImage.open instead.

Deprecations

Deprecation warning when saving JPEGs

JPEG images cannot contain an alpha channel. Pillow prior to 3.4.0silently drops the alpha channel. With this release Pillow will nowissue aDeprecationWarning when attempting to save aRGBA modeimage as a JPEG. This will become an error in Pillow 4.2.

API additions

New resizing filters

Two new filters available forImage.resize() andImage.thumbnail()functions:BOX andHAMMING.BOX is the high-performance filter withtwo times shorter window thanBILINEAR. It can be used for image reduction3 and more times and produces a sharper result thanBILINEAR.

HAMMING filter has the same performance asBILINEAR filter whileproviding the image downscaling quality comparable toBICUBIC.Both new filters don’t show good quality for the image upscaling.

New DDS decoders

Pillow can now decode DXT3 images, as well as the previously supportedDXT1 and DXT5 formats. All three formats are now decoded in C code forbetter performance.

Append images to GIF

Additional frames can now be appended when saving a GIF file, through theappend_images argument. The new frames are passed in as a list of images,which may be have multiple frames themselves.

Note that theappend_images argument is only used ifsave_all is alsoin effect, e.g.:

im.save(out,save_all=True,append_images=[im1,im2,...])

Save multiple frame TIFF

Multiple frames can now be saved in a TIFF file by using thesave_all option.e.g.:

im.save("filename.tiff",format="TIFF",save_all=True)
On this page

[8]ページ先頭

©2009-2025 Movatter.jp