-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Only deprecate fromarray mode for changing data types #9063
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Any idea when this might be merged? And any idea what version it might be released in? The previous deprecation has been causing a lot of warnings in my projects which I think this PR should fix. Thanks for allowing these cases. |
Pillow 12.0.0 is scheduled for October 15. I expect that it will be merged by then. |
docs/deprecations.rst
Outdated
Using the ``mode`` parameter in :py:meth:`~PIL.Image.fromarray()` to change data types | ||
has been deprecated. Since pixel values do not contain information about palettes or | ||
color spaces, the parameter can still be used to place grayscale L mode data within a | ||
P mode image, or read RGB data as YCbCr for example. If omitted, the mode will be | ||
automatically determined from the object's shape and type. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, let's give a mention what happened in 11.3.0 and what's updated for 12.0.0.
It's good that's been added to the 11.3/12 release notes, but let's also include here for those who just read this.
I am converting from HSV space. And I get the warning. Is this solved in latest version? |
Nope, not yet: #9063 (comment) |
Further discussion in #9018 has suggested that some of the functionality in the
fromarray()
mode argument is still useful.#9018 (comment)
This PR restores it for changing