mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 18:26:17 +03:00
Merge pull request #8096 from radarhere/createprofile
This commit is contained in:
commit
eeb1eeab20
|
@ -754,7 +754,7 @@ def applyTransform(
|
||||||
|
|
||||||
|
|
||||||
def createProfile(
|
def createProfile(
|
||||||
colorSpace: Literal["LAB", "XYZ", "sRGB"], colorTemp: SupportsFloat = -1
|
colorSpace: Literal["LAB", "XYZ", "sRGB"], colorTemp: SupportsFloat = 0
|
||||||
) -> core.CmsProfile:
|
) -> core.CmsProfile:
|
||||||
"""
|
"""
|
||||||
(pyCMS) Creates a profile.
|
(pyCMS) Creates a profile.
|
||||||
|
@ -777,7 +777,7 @@ def createProfile(
|
||||||
:param colorSpace: String, the color space of the profile you wish to
|
:param colorSpace: String, the color space of the profile you wish to
|
||||||
create.
|
create.
|
||||||
Currently only "LAB", "XYZ", and "sRGB" are supported.
|
Currently only "LAB", "XYZ", and "sRGB" are supported.
|
||||||
:param colorTemp: Positive integer for the white point for the profile, in
|
:param colorTemp: Positive number for the white point for the profile, in
|
||||||
degrees Kelvin (i.e. 5000, 6500, 9600, etc.). The default is for D50
|
degrees Kelvin (i.e. 5000, 6500, 9600, etc.). The default is for D50
|
||||||
illuminant if omitted (5000k). colorTemp is ONLY applied to LAB
|
illuminant if omitted (5000k). colorTemp is ONLY applied to LAB
|
||||||
profiles, and is ignored for XYZ and sRGB.
|
profiles, and is ignored for XYZ and sRGB.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user