mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-29 22:17:34 +08:00
BUG: Use PIL as default imread plugin, since MPL imread is still somewhat broken.
This commit is contained in:
@@ -18,6 +18,13 @@ for preferred_plugin in ['matplotlib', 'pil', 'qt', 'null']:
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
# Use PIL as the default imread plugin, since matplotlib (1.2.x)
|
||||
# is buggy (flips PNGs around, returns bytes as floats, etc.)
|
||||
try:
|
||||
use_plugin('pil', 'imread')
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
from .sift import *
|
||||
from .collection import *
|
||||
|
||||
|
||||
Reference in New Issue
Block a user