I downloaded images for training the model in keras (I collected them from google images using an extension). Then I used the code to resize.
from PIL import