Python——将图像文件转化为RGB

from PIL import Image

L_path = '待转化文件路径'
L_image = Image.open(L_path)
out = L_image.convert("RGB")
out.save("输出文件路径")

你可能感兴趣的:(Python,python,开发语言,后端)