Skip to content

Commit

Permalink
Add python-pillow#3886 to release notes and CHANGES
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Jul 1, 2019
1 parent a2919f9 commit e62dcc3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGES.rst
Expand Up @@ -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]

Expand Down
11 changes: 11 additions & 0 deletions docs/releasenotes/6.1.0.rst
Expand Up @@ -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
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Expand Down

0 comments on commit e62dcc3

Please sign in to comment.