From 53760e3d8710429da1e9611645248d936dbb2455 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Fri, 19 Sep 2014 19:39:50 -0500 Subject: [PATCH] Point user to Pillow docs for external libraries --- skimage/io/_plugins/pil_plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skimage/io/_plugins/pil_plugin.py b/skimage/io/_plugins/pil_plugin.py index 751194e5..8ad51dba 100644 --- a/skimage/io/_plugins/pil_plugin.py +++ b/skimage/io/_plugins/pil_plugin.py @@ -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)