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


… [Trackback]
[…] Find More here on that Topic: geeksforgeeks.org/python-pil-copy-method/ […]