You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/releasenotes/5.3.0.rst
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,15 +8,16 @@ Image size
8
8
^^^^^^^^^^
9
9
10
10
If you attempt to set the size of an image directly, e.g.
11
-
``im.size = (100, 100)``, you will now receive an ``AttributeError``. This is
11
+
``im.size = (100, 100)``, you will now receive an :py:exc:`AttributeError`. This is
12
12
not about removing existing functionality, but instead about raising an
13
13
explicit error to prevent later consequences. The ``resize`` method is the
14
14
correct way to change an image's size.
15
15
16
16
The exceptions to this are:
17
17
18
18
* The ICO and ICNS image formats, which use ``im.size = (100, 100)`` to select a subimage.
19
-
* 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.
19
+
* The TIFF image format, which now has a :py:exc:`DeprecationWarning` for this action,
20
+
as direct image size setting was previously necessary to work around an issue with tile extents.
0 commit comments