Skip to content

Commit e19713e

Browse files
committed
Added release notes for 7.2.0 [ci skip]
1 parent 41a7521 commit e19713e

2 files changed

Lines changed: 30 additions & 0 deletions

File tree

docs/releasenotes/7.2.0.rst

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
7.2.0
2+
-----
3+
4+
API Changes
5+
===========
6+
7+
Replaced TiffImagePlugin DEBUG with logging
8+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9+
10+
``TiffImagePlugin.DEBUG = True`` has been a way to print various debugging
11+
information when interacting with TIFF images. This has now been removed
12+
in favour of Python's ``logging`` module, already used in other places in the
13+
Pillow source code.
14+
15+
Corrected default offset when writing EXIF data
16+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17+
18+
Previously, the default ``offset`` argument for
19+
:py:meth:`~PIL.Image.Exif.tobytes` was 0, which did not include the magic
20+
header. It is now 8.
21+
22+
Moved to ImageFileDirectory_v2 in Image.Exif
23+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24+
25+
Moved from the legacy :py:class:`PIL.TiffImagePlugin.ImageFileDirectory_v1` to
26+
:py:class:`PIL.TiffImagePlugin.ImageFileDirectory_v2` in
27+
:py:class:`PIL.Image.Exif`. This means that Exif RATIONALs and SIGNED_RATIONALs
28+
as now read as :py:class:`PIL.TiffImagePlugin.IFDRational`, instead of as a
29+
tuple with a numerator and a denominator.

docs/releasenotes/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Release Notes
66
.. toctree::
77
:maxdepth: 2
88

9+
7.2.0
910
7.1.2
1011
7.1.1
1112
7.1.0

0 commit comments

Comments
 (0)