BUG: Use PIL as the default image loader.

This commit is contained in:
Stefan van der Walt
2012-06-24 17:00:36 -07:00
parent 417776f776
commit 7c19250810
+8 -6
View File
@@ -32,12 +32,14 @@ def _load_preferred_plugins():
break
except (ImportError, RuntimeError):
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
# 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
_load_preferred_plugins()