Skip to content

Commit

Permalink
Merge pull request #5327 from radarhere/tiff_icc_profile
Browse files Browse the repository at this point in the history
Document #5321
  • Loading branch information
hugovk committed Mar 14, 2021
2 parents b7e525d + b57aee5 commit 8064e04
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/handbook/image-file-formats.rst
Expand Up @@ -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.

Expand Down
8 changes: 8 additions & 0 deletions docs/releasenotes/8.2.0.rst
Expand Up @@ -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
========

Expand Down

0 comments on commit 8064e04

Please sign in to comment.