-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
[Doc]: replace usages of .imread
with PIL.Image.open
#25914
Comments
T.b.d.: This is often used in a context manager:
It should be simpler to only pass the path to
or
Both of them are still not elegant. I thus propose to extend
|
|
Pulling good first issue until we shake out what we want to do but I like 'sample_image' |
Thinking about it, it may be an educational aspect to not hide
seems like a reasonable solution. It would be slightly nicer if |
Documentation Link
https://matplotlib.org/devdocs/api/image_api.html#matplotlib.image.imread
Problem
We flag the imread function with a note that it's not recommended, so we should follow our own guidance and replace usages of imread with PIL when possible.
Suggested improvement
Marking this as a good first issue since it's replacing the usage of
imread
in the code and examples with PIL.Image.open when possible.The text was updated successfully, but these errors were encountered: