from PIL import Image new_image = Image.new("RGB", (224, 224), color=(255,255,255)) N = 10 for i in range(N): new_image.save(f"whiteimages/{i}.jpg")