1from PIL import Image
2
3im1 = Image.open(r'C:\Users\Ron\Desktop\Test\autumn.jpg')
4im1.save(r'C:\Users\Ron\Desktop\Test\new_autumn.png')
5
1from PIL import Image
2
3im1 = Image.open(r'path where the JPG is stored\file name.jpg')
4im1.save(r'path where the PNG will be stored\new file name.png')
5