Fix indexing bug in freeimage plugin

This commit is contained in:
Stefan van der Walt
2014-09-04 21:29:02 +01:00
parent 39104e878f
commit 051c54c577
+1 -1
View File
@@ -672,7 +672,7 @@ def _array_to_bitmap(array):
raise RuntimeError('Could not allocate image for storage')
try:
def n(arr): # normalise to freeimage's in-memory format
return arr.T[:, ::-1]
return arr.T[..., ::-1]
wrapped_array = _wrap_bitmap_bits_in_array(bitmap, w_shape, dtype)
# swizzle the color components and flip the scanlines to go to