PIL is the Python Imaging Library which provides the python interpreter with image editing capabilities.
PIL.Image.copy() method copies the image to another image object, this method is useful when we need to copy the image but also retain the original.
Syntax:Image.copy()
Parameters: no arguments
Returns:An image object
from PIL import Image
im1 = Image. open (r "C:\Users\sadow984\Desktop\i3.PNG" )
im2 = im1.copy()
im2.show()
|
Output:

from PIL import Image
im1 = Image. open (r "C:\Users\sadow984\Desktop\i3.PNG" )
im2 = im1.copy()
im1.show()
|
Output:
