Skip to content

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