File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1463,7 +1463,7 @@ def imread(fname, format=None):
1463
1463
1464
1464
Passing a URL is deprecated. Please open the URL
1465
1465
for reading and pass the result to Pillow, e.g. with
1466
- ``PIL.Image.open(urllib.request.urlopen(url))``.
1466
+ ``np.array( PIL.Image.open(urllib.request.urlopen(url) ))``.
1467
1467
format : str, optional
1468
1468
The image file format assumed for reading the data. The image is
1469
1469
loaded as a PNG file if *format* is set to "png", if *fname* is a path
@@ -1519,7 +1519,7 @@ def imread(fname, format=None):
1519
1519
"deprecated since %(since)s and will no longer be supported "
1520
1520
"%(removal)s. Please open the URL for reading and pass the "
1521
1521
"result to Pillow, e.g. with "
1522
- "``PIL.Image.open(urllib.request.urlopen(url))``." )
1522
+ "``np.array( PIL.Image.open(urllib.request.urlopen(url) ))``." )
1523
1523
# hide imports to speed initial import on systems with slow linkers
1524
1524
from urllib import request
1525
1525
ssl_ctx = mpl ._get_ssl_context ()
You can’t perform that action at this time.
0 commit comments