Merge pull request #5327 from radarhere/tiff_icc_profile

Document #5321
This commit is contained in:
Hugo van Kemenade 2021-03-15 00:37:11 +02:00 committed by GitHub
commit 8064e04e96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

View File

@ -901,6 +901,9 @@ using the general tags available through tiffinfo.
**copyright**
Strings
**icc_profile**
The ICC Profile to include in the saved file.
**resolution_unit**
An integer. 1 for no unit, 2 for inches and 3 for centimeters.

View File

@ -51,6 +51,14 @@ instances, so it will only be used by ``im.show()`` or :py:func:`.ImageShow.show
if none of the other viewers are available. This means that the behaviour of
:py:class:`PIL.ImageShow` will stay the same for most Pillow users.
Saving TIFF with ICC profile
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
As is already possible for JPEG, PNG and WebP, the ICC profile for TIFF files can now
be specified through a keyword argument::
im.save("out.tif", icc_profile=...)
Security
========