document ImageCms.{ImageCmsProfile,Intent,Direction}; fix ImageCms.core.CmsProfile references

(cherry picked from commit f2b1bbcf65b327c14646d4113302e3df59555110)
This commit is contained in:
Nulano 2024-01-01 02:07:59 +01:00
parent 90991428fa
commit 26b2aa5165
3 changed files with 23 additions and 4 deletions

View File

@ -338,8 +338,8 @@ ImageCms.CmsProfile attributes
.. deprecated:: 3.2.0 .. deprecated:: 3.2.0
.. versionremoved:: 8.0.0 .. versionremoved:: 8.0.0
Some attributes in :py:class:`PIL.ImageCms.CmsProfile` have been removed. From 6.0.0, Some attributes in :py:class:`PIL.ImageCms.core.CmsProfile` have been removed.
they issued a :py:exc:`DeprecationWarning`: From 6.0.0, they issued a :py:exc:`DeprecationWarning`:
======================== =================================================== ======================== ===================================================
Removed Use instead Removed Use instead

View File

@ -8,9 +8,26 @@ The :py:mod:`~PIL.ImageCms` module provides color profile management
support using the LittleCMS2 color management engine, based on Kevin support using the LittleCMS2 color management engine, based on Kevin
Cazabon's PyCMS library. Cazabon's PyCMS library.
.. autoclass:: ImageCmsProfile
:members:
:special-members: __init__
.. autoclass:: ImageCmsTransform .. autoclass:: ImageCmsTransform
:members:
:undoc-members:
.. autoexception:: PyCMSError .. autoexception:: PyCMSError
Constants
---------
.. autoclass:: Intent
:members:
:member-order: bysource
:undoc-members:
.. autoclass:: Direction
:members:
:member-order: bysource
:undoc-members:
Functions Functions
--------- ---------
@ -37,13 +54,15 @@ CmsProfile
---------- ----------
The ICC color profiles are wrapped in an instance of the class The ICC color profiles are wrapped in an instance of the class
:py:class:`CmsProfile`. The specification ICC.1:2010 contains more :py:class:`~core.CmsProfile`. The specification ICC.1:2010 contains more
information about the meaning of the values in ICC profiles. information about the meaning of the values in ICC profiles.
For convenience, all XYZ-values are also given as xyY-values (so they For convenience, all XYZ-values are also given as xyY-values (so they
can be easily displayed in a chromaticity diagram, for example). can be easily displayed in a chromaticity diagram, for example).
.. py:currentmodule:: PIL.ImageCms.core
.. py:class:: CmsProfile .. py:class:: CmsProfile
:canonical: PIL._imagingcms.CmsProfile
.. py:attribute:: creation_date .. py:attribute:: creation_date
:type: Optional[datetime.datetime] :type: Optional[datetime.datetime]

View File

@ -30,7 +30,7 @@ Image.fromstring, im.fromstring and im.tostring
ImageCms.CmsProfile attributes ImageCms.CmsProfile attributes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Some attributes in :py:class:`PIL.ImageCms.CmsProfile` have been removed: Some attributes in :py:class:`PIL.ImageCms.core.CmsProfile` have been removed:
======================== =================================================== ======================== ===================================================
Removed Use instead Removed Use instead