Syntax:Image.copy() Parameters: no arguments Returns:An image object
# Importing Image module from PIL package from PIL import Image # creating a image object im1 = Image. open (r "C:\Users\sadow984\Desktop\i3.PNG" ) # copying image to another image object im2 = im1.copy() # shows the copied image im2.show() |
Output:
# Importing Image module from PIL package from PIL import Image # creating a image object im1 = Image. open (r "C:\Users\sadow984\Desktop\i3.PNG" ) # copying image to another image object im2 = im1.copy() # shows the original image im1.show() |
Output: