From 051c54c577b32f76f88fcd7d894767bc48b81bad Mon Sep 17 00:00:00 2001 From: Stefan van der Walt Date: Thu, 4 Sep 2014 21:29:02 +0100 Subject: [PATCH] Fix indexing bug in freeimage plugin --- skimage/io/_plugins/freeimage_plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skimage/io/_plugins/freeimage_plugin.py b/skimage/io/_plugins/freeimage_plugin.py index c3bd4e73..187264e6 100644 --- a/skimage/io/_plugins/freeimage_plugin.py +++ b/skimage/io/_plugins/freeimage_plugin.py @@ -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