from PIL import Image
L_path = '待转化文件路径'
L_image = Image.open(L_path)
out = L_image.convert("RGB")
out.save("输出文件路径")
Python——将图像文件转化为RGB
最新推荐文章于 2024-05-27 22:35:19 发布
from PIL import Image
L_path = '待转化文件路径'
L_image = Image.open(L_path)
out = L_image.convert("RGB")
out.save("输出文件路径")