From cdd12532118c0f279f41f83298565a1db14c2c68 Mon Sep 17 00:00:00 2001 From: Alexander Date: Wed, 18 Dec 2019 01:09:54 +0300 Subject: [PATCH] notes fixes skip-checks: true --- docs/releasenotes/7.0.0.rst | 8 ++++---- src/PIL/Image.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/releasenotes/7.0.0.rst b/docs/releasenotes/7.0.0.rst index ed887f082..11bd80743 100644 --- a/docs/releasenotes/7.0.0.rst +++ b/docs/releasenotes/7.0.0.rst @@ -50,13 +50,13 @@ an error. Use ``Image.resize`` instead. Default resampling filter ^^^^^^^^^^^^^^^^^^^^^^^^^ -The default resampling filter is changed to high-quality convolution -``Image.BICUBIC`` instead of ``Image.NEAREST`` for the :py:meth:`~PIL.Image.Image.resize` -method and for :py:meth:`~PIL.ImageOps.pad``, :py:meth:`~PIL.ImageOps.scale`` +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. ``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 and simple but low-quality filter. +``Image.NEAREST`` is a very fast filter, but simple and low-quality. API Changes diff --git a/src/PIL/Image.py b/src/PIL/Image.py index a509b13cb..6ddd7fb5f 100644 --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -1773,7 +1773,7 @@ class Image: :py:attr:`PIL.Image.BICUBIC` or :py:attr:`PIL.Image.LANCZOS`. Default filter is :py:attr:`PIL.Image.BICUBIC`. If the image has mode "1" or "P", it is - always set :py:attr:`PIL.Image.NEAREST`. + always set to :py:attr:`PIL.Image.NEAREST`. See: :ref:`concept-filters`. :param box: An optional 4-tuple of floats giving the region of the source image which should be scaled. @@ -1843,7 +1843,7 @@ class Image: environment), or :py:attr:`PIL.Image.BICUBIC` (cubic spline interpolation in a 4x4 environment). If omitted, or if the image has mode "1" or "P", it is - set :py:attr:`PIL.Image.NEAREST`. See :ref:`concept-filters`. + set to :py:attr:`PIL.Image.NEAREST`. See :ref:`concept-filters`. :param expand: Optional expansion flag. If true, expands the output image to make it large enough to hold the entire rotated image. If false or omitted, make the output image the same size as the