-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
np.asarray(PIL.Image) returns a read-only copy as of 9.2.0 #6581
Comments
This is a side-effect of #6394, which reverted a temporary change from Pillow 8.3.0 to workaround a bug in NumPy. So as far as the Pillow side of the code is concerned, yes, I think the new behaviour is reliable. |
@FirefoxMetzger did that answer your question? |
@radarhere Yes, that helps :) We can close this issue if you want. Sorry for letting this slide; my PhD defense is coming up very soon and I am prioritizing that, so I am a bit behind on other projects recently. |
I'm not sure if this is a bug or intended behavior, but as of v9.2.0 a snippet like the following produces an array (
baz
) which is read-only:In v9.1.0 the same snippet produces a writable array:
I was wondering if this change was intentional, i.e., if we should rely on the new behavior. If it was, could you share what the motivation for it was? (so that I can see what we may need to update downstream.)
The text was updated successfully, but these errors were encountered: