import os
from PIL import Image
os.chdir(r"D:\jupyter\image_convert")
os.getcwd()
file = os.listdir(r"D:\jupyter\image_convert")
for f in file:
img = Image.open(f)
img.load()
f = f.split(".")[0]
img.save(f+".jpg")
import os
from PIL import Image
os.chdir(r"D:\jupyter\image_convert")
os.getcwd()
file = os.listdir(r"D:\jupyter\image_convert")
for f in file:
img = Image.open(f)
img.load()
f = f.split(".")[0]
img.save(f+".jpg")