mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-09 12:30:07 +08:00
Point user to Pillow docs for external libraries
This commit is contained in:
@@ -33,8 +33,8 @@ def imread(fname, dtype=None):
|
||||
# this will raise an IOError if the file is not readable
|
||||
im.getdata()[0]
|
||||
except IOError:
|
||||
raise ValueError('Could not load "%s": make sure you have external library '
|
||||
'installed for "%s" files' % (fname, im.format))
|
||||
site = "http://pillow.readthedocs.org/en/latest/installation.html#external-libraries"
|
||||
raise ValueError('Could not load "%s"\nPlease see documentation at %s' % (fname, site))
|
||||
else:
|
||||
return pil_to_ndarray(im, dtype)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user