notes fixes

skip-checks: true
This commit is contained in:
Alexander 2019-12-18 01:09:54 +03:00
parent 4da9858709
commit cdd1253211
2 changed files with 6 additions and 6 deletions

View File

@ -50,13 +50,13 @@ an error. Use ``Image.resize`` instead.
Default resampling filter Default resampling filter
^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^
The default resampling filter is changed to high-quality convolution 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` ``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`` method and the :py:meth:`~PIL.ImageOps.pad``, :py:meth:`~PIL.ImageOps.scale``
and :py:meth:`~PIL.ImageOps.fit`` functions. and :py:meth:`~PIL.ImageOps.fit`` functions.
``Image.NEAREST`` is still always used for images in "P" and "1" modes. ``Image.NEAREST`` is still always used for images in "P" and "1" modes.
See :ref:`concept-filters` to learn the difference. In short, 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 API Changes

View File

@ -1773,7 +1773,7 @@ class Image:
:py:attr:`PIL.Image.BICUBIC` or :py:attr:`PIL.Image.LANCZOS`. :py:attr:`PIL.Image.BICUBIC` or :py:attr:`PIL.Image.LANCZOS`.
Default filter is :py:attr:`PIL.Image.BICUBIC`. Default filter is :py:attr:`PIL.Image.BICUBIC`.
If the image has mode "1" or "P", it is 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`. See: :ref:`concept-filters`.
:param box: An optional 4-tuple of floats giving the region :param box: An optional 4-tuple of floats giving the region
of the source image which should be scaled. of the source image which should be scaled.
@ -1843,7 +1843,7 @@ class Image:
environment), or :py:attr:`PIL.Image.BICUBIC` environment), or :py:attr:`PIL.Image.BICUBIC`
(cubic spline interpolation in a 4x4 environment). (cubic spline interpolation in a 4x4 environment).
If omitted, or if the image has mode "1" or "P", it is 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 :param expand: Optional expansion flag. If true, expands the output
image to make it large enough to hold the entire rotated image. 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 If false or omitted, make the output image the same size as the