Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from PIL import Image
- original = Image.open("media\JK.png")
- width, height = original.size
- wid = int(width / 2)
- hei = int(height - 10)
- img = original.crop((0, 0, wid, height))
- rev = img.transpose(Image.FLIP_LEFT_RIGHT)
- width1, height1 = img.size
- til = Image.new("RGB",(wid+width1,height))
- til.paste(img,(0,0))
- til.paste(rev,(width1,0))
- til.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement