from PIL import Image
im1=Image.open('D:\Html\照片\妹妹.png').convert(mode="RGB")
#混合两张图
im2=Image.new("RGB",im1.size,"gray")
Image.blend(im1,im2,alpha=0.5).show()

python的pillow库_Image

python的pillow库_Image_02

from PIL import Image 
img1=Image.open(r'D:\Html\照片\ag.jpg')
img2=Image.open(r'D:\Html\照片\kn7.jpg')
img2=img2.resize(img1.size)
r,g,b=img2.split()
Image.composite(img2,img1,b).show()