Appearance
from PIL import Image # 打开原始图片 image = Image.open('./1168165-20191105005247477-950176381.bmp') # 将图片保存为新格式 new_image = image.convert("RGB") new_image.save('1168165-20191105005247477-950176381.png', 'PNG') print("图片已经成功转换!")