mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
Merge branch 'master' into box-in-thumbnail
# Conflicts: # docs/releasenotes/7.0.0.rst
This commit is contained in:
commit
532eca3c20
|
@ -5,6 +5,9 @@ Changelog (Pillow)
|
|||
7.0.0 (unreleased)
|
||||
------------------
|
||||
|
||||
- Change default resize resampling filter from NEAREST to BICUBIC #4255
|
||||
[homm]
|
||||
|
||||
- Better thumbnail aspect ratio preservation #4256
|
||||
[homm]
|
||||
|
||||
|
|
|
@ -52,8 +52,8 @@ Default resampling filter
|
|||
|
||||
The default resampling filter has been changed to the high-quality convolution
|
||||
``Image.BICUBIC`` instead of ``Image.NEAREST``, for the :py:meth:`~PIL.Image.Image.resize`
|
||||
method and the :py:meth:`~PIL.ImageOps.pad``, :py:meth:`~PIL.ImageOps.scale``
|
||||
and :py:meth:`~PIL.ImageOps.fit`` functions.
|
||||
method and the :py:meth:`~PIL.ImageOps.pad`, :py:meth:`~PIL.ImageOps.scale`
|
||||
and :py:meth:`~PIL.ImageOps.fit` functions.
|
||||
``Image.NEAREST`` is still always used for images in "P" and "1" modes.
|
||||
See :ref:`concept-filters` to learn the difference. In short,
|
||||
``Image.NEAREST`` is a very fast filter, but simple and low-quality.
|
||||
|
@ -101,8 +101,8 @@ Image.__del__
|
|||
^^^^^^^^^^^^^
|
||||
|
||||
Implicitly closing the image's underlying file in ``Image.__del__`` has been removed.
|
||||
Use a context manager or call ``Image.close()`` instead to close the file in a
|
||||
deterministic way.
|
||||
Use a context manager or call :py:meth:`~PIL.Image.Image.close` instead to close
|
||||
the file in a deterministic way.
|
||||
|
||||
Previous method:
|
||||
|
||||
|
@ -121,8 +121,8 @@ Use instead:
|
|||
Better thumbnail geometry
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
When calculating the new dimensions in ``Image.thumbnail``, round to the
|
||||
nearest integer, instead of always rounding down.
|
||||
When calculating the new dimensions in :py:meth:`~PIL.Image.Image.thumbnail`,
|
||||
round to the nearest integer, instead of always rounding down.
|
||||
This better preserves the original aspect ratio.
|
||||
|
||||
The last row and column in the image get the correct weight after
|
||||
|
|
Loading…
Reference in New Issue
Block a user