Save images
To save a modified image, we can use the save() method. This methods accepts a single parameter – the name under which the file will be saved. For example, here is how I would save the image I’ve flipped in our last example:
flipped_image = new_image.transpose(Image.FLIP_LEFT_RIGHT) flipped_image.save('flipped_img.jpg')
If not path is specified, the file will be stored in the same directory in which the Python script is located.