Skip to content
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

Document handling of modes when converting to or from NumPy #7049

Merged
merged 2 commits into from Mar 31, 2023

Conversation

radarhere
Copy link
Member

@radarhere radarhere commented Mar 31, 2023

Resolves #5850 by documenting the available pixel types of Pillow modes, and noting that they do not always correspond to NumPy dtypes.

Helps #7045 by documenting that converting P or PA images to NumPy will not include the palette.

@radarhere radarhere changed the title Improve mode hand when converting from NumPy Document handling of modes when converting to or from NumPy Mar 31, 2023
@hugovk hugovk merged commit 93afedf into python-pillow:main Mar 31, 2023
59 of 60 checks passed
@radarhere radarhere deleted the numpy branch March 31, 2023 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect SampleFormat and BitsPerSample
2 participants