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

In [2]:
img = np.array(Image.open('data/src/lena_square.png').resize((128, 128)))

In [3]:
print(img.shape)


(128, 128, 3)

In [4]:
img_tile = np.tile(img, (2, 3, 1))

In [5]:
print(img_tile.shape)


(256, 384, 3)

In [6]:
Image.fromarray(img_tile).save('data/dst/lena_numpy_tile.jpg')