From 8d8f109f208cf2fc8bb0875a7b80d29d0f98e3a6 Mon Sep 17 00:00:00 2001 From: BowenWu Date: Tue, 19 Sep 2017 20:29:00 +0800 Subject: [PATCH] Bug Fix in Image.py --- PIL/Image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PIL/Image.py b/PIL/Image.py index 2904e4e07..7d59e5085 100644 --- a/PIL/Image.py +++ b/PIL/Image.py @@ -2429,7 +2429,7 @@ def fromarray(obj, mode=None): if ndim > ndmax: raise ValueError("Too many dimensions: %d > %d." % (ndim, ndmax)) - size = shape[1], shape[0] + size = shape[0], shape[1] if strides is not None: if hasattr(obj, 'tobytes'): obj = obj.tobytes()