File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1204,8 +1204,9 @@ def imread(fname, format=None):
1204
1204
"""
1205
1205
Read an image from a file into an array.
1206
1206
1207
- *fname* may be a string path or a Python file-like object. If
1208
- using a file object, it must be opened in binary mode.
1207
+ *fname* may be a string path, a valid URL, or a Python
1208
+ file-like object. If using a file object, it must be opened in binary
1209
+ mode.
1209
1210
1210
1211
If *format* is provided, will try to read file of that type,
1211
1212
otherwise the format is deduced from the filename. If nothing can
@@ -1218,7 +1219,9 @@ def imread(fname, format=None):
1218
1219
matplotlib can only read PNGs natively, but if `PIL
1219
1220
<http://www.pythonware.com/products/pil/>`_ is installed, it will
1220
1221
use it to load the image and return an array (if possible) which
1221
- can be used with :func:`~matplotlib.pyplot.imshow`.
1222
+ can be used with :func:`~matplotlib.pyplot.imshow`. Note, URL strings
1223
+ may not be compatible with PIL. Check the PIL documentation for more
1224
+ information.
1222
1225
"""
1223
1226
1224
1227
def pilread (fname ):
You can’t perform that action at this time.
0 commit comments