mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-13 13:16:52 +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):
|
def _conv_type_shape(im):
|
||||||
m = ImageMode.getmode(im.mode)
|
m = ImageMode.getmode(im.mode)
|
||||||
shape = (im.size[1], im.size[0])
|
shape = (im.height, im.width)
|
||||||
extra = len(m.bands)
|
extra = len(m.bands)
|
||||||
if extra != 1:
|
if extra != 1:
|
||||||
shape += (extra,)
|
shape += (extra,)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user