mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 10:46:16 +03:00
Merge pull request #5327 from radarhere/tiff_icc_profile
Document #5321
This commit is contained in:
commit
8064e04e96
|
@ -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.
|
||||
|
||||
|
|
|
@ -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
|
||||
========
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user