from PIL import Image
img = Image.open(r'C:\Users\...\Desktop\1.PNG')
img = img.resize((500,500),Image.ANTIALIAS)
img.save(r'C:\Users\...\Desktop\2.PNG')
from PIL import Image
img = Image.open(r'C:\Users\...\Desktop\1.PNG')
img = img.resize((500,500),Image.ANTIALIAS)
img.save(r'C:\Users\...\Desktop\2.PNG')