mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-27 15:44:46 +03:00
Bug Fix in Image.py
This commit is contained in:
parent
e5513804a3
commit
8d8f109f20
|
@ -2429,7 +2429,7 @@ def fromarray(obj, mode=None):
|
||||||
if ndim > ndmax:
|
if ndim > ndmax:
|
||||||
raise ValueError("Too many dimensions: %d > %d." % (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 strides is not None:
|
||||||
if hasattr(obj, 'tobytes'):
|
if hasattr(obj, 'tobytes'):
|
||||||
obj = obj.tobytes()
|
obj = obj.tobytes()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user