From e19713ebc9a95eabad3292a5ddc35a4e9eb45947 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sun, 14 Jun 2020 12:03:03 +1000 Subject: [PATCH 1/2] Added release notes for 7.2.0 [ci skip] --- docs/releasenotes/7.2.0.rst | 29 +++++++++++++++++++++++++++++ docs/releasenotes/index.rst | 1 + 2 files changed, 30 insertions(+) create mode 100644 docs/releasenotes/7.2.0.rst diff --git a/docs/releasenotes/7.2.0.rst b/docs/releasenotes/7.2.0.rst new file mode 100644 index 000000000..aeea7e9d9 --- /dev/null +++ b/docs/releasenotes/7.2.0.rst @@ -0,0 +1,29 @@ +7.2.0 +----- + +API Changes +=========== + +Replaced TiffImagePlugin DEBUG with logging +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +``TiffImagePlugin.DEBUG = True`` has been a way to print various debugging +information when interacting with TIFF images. This has now been removed +in favour of Python's ``logging`` module, already used in other places in the +Pillow source code. + +Corrected default offset when writing EXIF data +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Previously, the default ``offset`` argument for +:py:meth:`~PIL.Image.Exif.tobytes` was 0, which did not include the magic +header. It is now 8. + +Moved to ImageFileDirectory_v2 in Image.Exif +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Moved from the legacy :py:class:`PIL.TiffImagePlugin.ImageFileDirectory_v1` to +:py:class:`PIL.TiffImagePlugin.ImageFileDirectory_v2` in +:py:class:`PIL.Image.Exif`. This means that Exif RATIONALs and SIGNED_RATIONALs +as now read as :py:class:`PIL.TiffImagePlugin.IFDRational`, instead of as a +tuple with a numerator and a denominator. diff --git a/docs/releasenotes/index.rst b/docs/releasenotes/index.rst index 575931c4d..4dd7d5e63 100644 --- a/docs/releasenotes/index.rst +++ b/docs/releasenotes/index.rst @@ -6,6 +6,7 @@ Release Notes .. toctree:: :maxdepth: 2 + 7.2.0 7.1.2 7.1.1 7.1.0 From e134216609975e9190a427361d5339d9356d52b8 Mon Sep 17 00:00:00 2001 From: Andrew Murray <3112309+radarhere@users.noreply.github.com> Date: Sun, 14 Jun 2020 16:53:30 +1000 Subject: [PATCH 2/2] Fixed typo [ci skip] Co-authored-by: Hugo van Kemenade --- docs/releasenotes/7.2.0.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/releasenotes/7.2.0.rst b/docs/releasenotes/7.2.0.rst index aeea7e9d9..904e9d5ab 100644 --- a/docs/releasenotes/7.2.0.rst +++ b/docs/releasenotes/7.2.0.rst @@ -25,5 +25,5 @@ Moved to ImageFileDirectory_v2 in Image.Exif Moved from the legacy :py:class:`PIL.TiffImagePlugin.ImageFileDirectory_v1` to :py:class:`PIL.TiffImagePlugin.ImageFileDirectory_v2` in :py:class:`PIL.Image.Exif`. This means that Exif RATIONALs and SIGNED_RATIONALs -as now read as :py:class:`PIL.TiffImagePlugin.IFDRational`, instead of as a +are now read as :py:class:`PIL.TiffImagePlugin.IFDRational`, instead of as a tuple with a numerator and a denominator.