import os import glob from PIL import Image files = glob.glob(\'/Users/mac/PycharmProjects/crop001/1/*.jpg\') for f in files: img = Image.open(f) img_resiz