Python 46 Programming Tutorial - Awesome Merge Effect

from PIL import Image

sister = Image.open("sister.jpg")
bucky = Image.open("bucky.jpg")
r1, g1, b1 = sister.split()
r2, g2, b2 = bucky.split()
new_img = Image.merge("RGB", (r2, g1, b2))

new_img.show()

你可能感兴趣的:(Python 46 Programming Tutorial - Awesome Merge Effect)