File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+ are now read as :py:class: `PIL.TiffImagePlugin.IFDRational `, instead of as a
29+ tuple with a numerator and a denominator.
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments