mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-27 23:54:46 +03:00
Merge 8d8f109f20
into e5513804a3
This commit is contained in:
commit
e605a2e986
|
@ -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