FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Deprecate non-image ImageCms modes by radarhere · Pull Request #8031 · python-pillow/Pillow · GitHub

Deprecate non-image ImageCms modes - #8031

Merged
hugovk merged 1 commit into
python-pillow:mainfrom
radarhere:imagingcms_modes
Jun 28, 2024
Merged

Deprecate non-image ImageCms modes#8031
hugovk merged 1 commit into
python-pillow:mainfrom
radarhere:imagingcms_modes

Conversation

radarhere commented Apr 29, 2024
edited
Loading

Copy link
Copy Markdown
Member

Resolves #8007

https://pillow.readthedocs.io/en/stable/reference/ImageCms.html#PIL.ImageCms.buildTransform and https://pillow.readthedocs.io/en/stable/reference/ImageCms.html#PIL.ImageCms.buildProofTransform describe inMode and outMode as

String, as a valid PIL mode that the appropriate profile also supports

However, "RGBA;16B", "L;16", "L;16B", "YCCA" and "YCC" are modes that can be interpreted, and there is a default case if the mode is not recognised.

This deprecates modes that are not Pillow modes, and also deprecates the default value if the mode is not able to be mapped. I've also added I;16, I;16L, I;16B, YCbCr as possible replacement values.

radarhere mentioned this pull request Apr 29, 2024
radarhere added the Deprecation Feature that will be removed in the future label Jun 8, 2024
hugovk merged commit 4d6dff3 into python-pillow:main Jun 28, 2024
radarhere deleted the imagingcms_modes branch June 28, 2024 10:25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Deprecation Feature that will be removed in the future

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Image CMS modes

2 participants


Back | FazBrowse Home | New Git URL