Skip to content

Conversation

@radarhere
Copy link
Member

@radarhere radarhere commented Apr 29, 2024

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 radarhere mentioned this pull request Apr 29, 2024
@radarhere radarhere added the Deprecation Feature that will be removed in the future label Jun 8, 2024
@hugovk hugovk merged commit 4d6dff3 into python-pillow:main Jun 28, 2024
@radarhere radarhere deleted the imagingcms_modes branch June 28, 2024 10:25
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