

def create_tmp_images():
    resize_root = tempfile.mkdtemp()
    images = (Image.new('RGB', (512, 512), 'white'), Image.new('RGB', (512, 512), 'black'))
    image_filenames = tuple((('image%s.png' % i) for (i, _) in enumerate(images)))
    for (img_filename, img) in zip(image_filenames, images):
        img.save(op.join(resize_root, img_filename))
    return (resize_root, images, image_filenames)

dataset/ETHPy150Open jmagnusson/Flask-Resize/flask_resize/tests/base.py create_tmp_images/original