From e59daf474c38aa744c3f3f3ee3cf20d930501082 Mon Sep 17 00:00:00 2001 From: Tony S Yu Date: Thu, 5 Dec 2013 23:38:13 -0600 Subject: [PATCH] Modest attempt at normalizing file extensions --- skimage/io/_io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skimage/io/_io.py b/skimage/io/_io.py index 0f5087a1..d38e7ac0 100644 --- a/skimage/io/_io.py +++ b/skimage/io/_io.py @@ -99,7 +99,7 @@ def imread(fname, as_grey=False, plugin=None, flatten=None, # TODO: This should probably use imghdr to get the image format. try: _, extension = os.path.splitext(fname) - function = function + extension + function = function + extension.lower() except AttributeError: # Buffers don't work with splitext pass img = call_plugin(function, fname, plugin=plugin, **plugin_args)