mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
Add #3886 to release notes and CHANGES
This commit is contained in:
parent
a2919f98ff
commit
e62dcc3d48
|
@ -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]
|
||||
|
||||
|
|
|
@ -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
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user