File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1486,7 +1486,7 @@ def imread(fname, format=None):
1486
1486
1487
1487
Passing a URL is deprecated. Please open the URL
1488
1488
for reading and pass the result to Pillow, e.g. with
1489
- ``PIL.Image.open(urllib.request.urlopen(url))``.
1489
+ ``np.array( PIL.Image.open(urllib.request.urlopen(url) ))``.
1490
1490
format : str, optional
1491
1491
The image file format assumed for reading the data. The image is
1492
1492
loaded as a PNG file if *format* is set to "png", if *fname* is a path
@@ -1542,7 +1542,7 @@ def imread(fname, format=None):
1542
1542
"deprecated since %(since)s and will no longer be supported "
1543
1543
"%(removal)s. Please open the URL for reading and pass the "
1544
1544
"result to Pillow, e.g. with "
1545
- "``PIL.Image.open(urllib.request.urlopen(url))``." )
1545
+ "``np.array( PIL.Image.open(urllib.request.urlopen(url) ))``." )
1546
1546
# hide imports to speed initial import on systems with slow linkers
1547
1547
from urllib import request
1548
1548
ssl_ctx = mpl ._get_ssl_context ()
You can’t perform that action at this time.
0 commit comments