In [1]:
import PIL.Image as Image
import numpy as np

In [2]:
img = Image.open('d:/tmp/1.png')

In [3]:
img.size


Out[3]:
(391, 262)

In [4]:
img = img.convert('RGB')

In [5]:
img = np.array(img)
print(img.shape)


(262, 391, 3)

In [ ]: