from PIL import Image import glob, os size = 128, 128 for infile in glob.glob("*.jpg"): file, ... Then this can be used to convert it to a Pillow image:.
確定! 回上一頁