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

Added ability to pass memoryview object to ImageDecoder #6937

Closed
wants to merge 1 commit into from

Conversation

bigcat88
Copy link
Contributor

Resolves #6933

Changes proposed in this pull request:

Checks whether or not input is PyMemoryView object.
If yes, then gets pointer to buffer and size.

This does not change any existing public API, just adds ability to pass memoryview to Image.frombytes method.

@hugovk
Copy link
Member

hugovk commented Feb 11, 2023

The CIFuzz failure will be fixed by google/oss-fuzz#9681.

@radarhere
Copy link
Member

I've created PR #6974 as an alternative to this.

@bigcat88
Copy link
Contributor Author

Thanks, I'll close this PR then as your suggestion is more elegant.

@bigcat88 bigcat88 closed this Feb 25, 2023
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.

Can support for the memoryview type be added as input to _decode (decode.c)?
3 participants