def save(data, name=None):
    if name is None:
        name = data.filename
    data = data.read()
    datafile = StringIO(data)
    if ext.resizer:
        try:
            images = ext.resizer.resize_image(datafile)
        except __HOLE__:
            # Not an image.
            return save_file(name, data)
        save_images(name, data, images)
    else:
        return save_file(name, data)
dataset/ETHPy150Open FelixLoether/flask-image-upload-thing/flask_uploads/functions.py/save