mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-11 16:36:03 +08:00
Modest attempt at normalizing file extensions
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user