I seem to have encountered a bug in scipy.misc.imread, and I'm looking for a workaround. Here's a clip of the error report:
from scipy.misc import imread
im = imread('380.bmp')
...
C:\Anaconda3\lib\site-packages\PIL\BmpImagePlugin.py in _bitmap(self, header, offset)
145 raw_mode = MASK_MODES[(file_info['bits'], file_info['rgb_mask'])]
146 else:
--> 147 raise IOError("Unsupported BMP bitfields layout")
148 else:
149 raise IOError("Unsupported BMP bitfields layout")
OSError: Unsupported BMP bitfields layout
I can open the image without problems in an image viewer, so I'm sure it's not corrupted.
The main question is: What's the best alternative to imread, so I can get around this issue? Alternatively, if you know a way to fix imread, that would also be good.
By the way, I'm using Python 3.5.1 in Anaconda 2.4.1 (64 bit)