from PIL import Image im1 = Image.open(r'path where the JPG is storedfile name.jpg') im1.save(r'path where the PNG will be stored ew file name.png')