Add #3886 to release notes and CHANGES

This commit is contained in:
Hugo 2019-07-01 12:20:08 +03:00
parent a2919f98ff
commit e62dcc3d48
2 changed files with 14 additions and 0 deletions

View File

@ -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]

View File

@ -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
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^