From 209faf1b62fa7ed6c9d8b2fc7bd46e1c7e54e0bd Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Fri, 20 Dec 2019 06:24:38 +1100 Subject: [PATCH 1/2] Updated CHANGES.rst [ci skip] --- CHANGES.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGES.rst b/CHANGES.rst index c1eab0c2e..1ea09fff8 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -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] From 945b4e9c826ab51530f716b512575d1d8f29dc00 Mon Sep 17 00:00:00 2001 From: Alexander Date: Sat, 21 Dec 2019 00:25:52 +0300 Subject: [PATCH 2/2] add references, fix release notes syntax --- docs/releasenotes/7.0.0.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/releasenotes/7.0.0.rst b/docs/releasenotes/7.0.0.rst index f9634e8cc..ac4fcb922 100644 --- a/docs/releasenotes/7.0.0.rst +++ b/docs/releasenotes/7.0.0.rst @@ -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. @@ -87,8 +87,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: @@ -107,5 +107,5 @@ Use instead: Better thumbnail aspect ratio preservation ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -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.