From e62dcc3d48618f965324c02c27002ef59f468a7b Mon Sep 17 00:00:00 2001 From: Hugo Date: Mon, 1 Jul 2019 12:20:08 +0300 Subject: [PATCH] Add #3886 to release notes and CHANGES --- CHANGES.rst | 3 +++ docs/releasenotes/6.1.0.rst | 11 +++++++++++ 2 files changed, 14 insertions(+) diff --git a/CHANGES.rst b/CHANGES.rst index 882ef3891..b84a449f4 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -8,6 +8,9 @@ Changelog (Pillow) - Deprecate Image.__del__ #3929 [jdufresne] +- Tiff: Add support for JPEG quality #3886 + [olt] + - Respect the PKG_CONFIG environment variable when building #3928 [chewi] diff --git a/docs/releasenotes/6.1.0.rst b/docs/releasenotes/6.1.0.rst index 66b805253..923681381 100644 --- a/docs/releasenotes/6.1.0.rst +++ b/docs/releasenotes/6.1.0.rst @@ -48,6 +48,17 @@ ImageTk.getimage This function is now supported. It returns the contents of an ``ImageTk.PhotoImage`` as an RGBA ``Image.Image`` instance. +Image quality for JPEG compressed TIFF +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +The TIFF encoder accepts a ``quality`` parameter for ``jpeg`` compressed TIFF files. A +value from 0 (worst) to 100 (best) controls the image quality, similar to the JPEG +encoder. The default is 75. For example: + +.. code-block:: python + + im.save("out.tif", compression="jpeg", quality=85) + Improve encoding of TIFF tags ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^