Skip to content

Latest commit

 

History

History
64 lines (44 loc) · 1.7 KB

8.3.0.rst

File metadata and controls

64 lines (44 loc) · 1.7 KB

8.3.0

Deprecations

TODO

TODO

API Changes

Changed WebP default "method" value when saving

Previously, it was 0, for the best speed. The default has now been changed to 4, to match WebP's default, for higher quality with still some speed optimisation.

Default resampling filter for special image modes

Pillow 7.0 changed the default resampling filter to Image.BICUBIC. However, as this is not supported yet for images with a custom number of bits, the default filter for those modes has been reverted to Image.NEAREST.

ImageMorph incorrect mode errors

For apply(), match() and get_on_pixels(), if the image mode is not L, an :py:exc:`Exception` was thrown. This has now been changed to a :py:exc:`ValueError`.

API Additions

ImageOps.contain

Returns a resized version of the image, set to the maximum width and height within size, while maintaining the original aspect ratio.

To compare it to other ImageOps methods:

Security

TODO

Other Changes

TODO

TODO