BUG: Use PIL as default imread plugin, since MPL imread is still somewhat broken.

This commit is contained in:
Stefan van der Walt
2012-02-19 21:24:10 -08:00
parent 33360cdb78
commit bf5f9f0fc7
+7
View File
@@ -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 *