image = Image.open(image)
print('changing size from %s to %s' % (str(image.size), str(Standard_size)))
image = image.resize(Standard_size)
np_image = np.asarray(image).flatten()
Tips on processing a lot of images in python