mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
Clarified code
This commit is contained in:
parent
902e3812a8
commit
fbd23bbf28
|
@ -208,7 +208,7 @@ _ENDIAN = "<" if sys.byteorder == "little" else ">"
|
|||
|
||||
def _conv_type_shape(im):
|
||||
m = ImageMode.getmode(im.mode)
|
||||
shape = (im.size[1], im.size[0])
|
||||
shape = (im.height, im.width)
|
||||
extra = len(m.bands)
|
||||
if extra != 1:
|
||||
shape += (extra,)
|
||||
|
|
Loading…
Reference in New Issue
Block a user