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)