mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
Added release notes [ci skip]
This commit is contained in:
parent
2c11974b86
commit
05f21695c7
|
@ -39,6 +39,22 @@ and size, new method ``ImageOps.pad`` pads images to fill a requested aspect
|
|||
ratio and size, filling new space with a provided ``color`` and positioning the
|
||||
image within the new area through a ``centering`` argument.
|
||||
|
||||
Image Size
|
||||
==========
|
||||
|
||||
If you attempt to set the size of an image directly, e.g.
|
||||
``im.size = (100, 100)``, you will now receive an ``AttributeError``. This is
|
||||
not about removing existing functionality, but instead about raising an
|
||||
explicit error to prevent later consequences. The ``resize`` method is the
|
||||
correct way to change an image's size.
|
||||
|
||||
The exceptions to this are:
|
||||
* The ICO and ICNS image formats, which use ``im.size = (100, 100)`` to select
|
||||
a subimage.
|
||||
* The TIFF image format, which now has a ``DeprecationWarning`` for this
|
||||
action, as direct image size setting was previously necessary to work around an
|
||||
issue with tile extents.
|
||||
|
||||
Other Changes
|
||||
=============
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user