Advertisement
AltronZ

KEK

Jul 18th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.36 KB | None | 0 0
  1. from PIL import Image
  2.  
  3. original = Image.open("media\JK.png")
  4.  
  5. width, height = original.size
  6.  
  7. wid = int(width / 2)
  8. hei = int(height - 10)
  9.  
  10. img = original.crop((0, 0, wid, height))
  11.  
  12. rev = img.transpose(Image.FLIP_LEFT_RIGHT)
  13.  
  14.  
  15. width1, height1 = img.size
  16. til = Image.new("RGB",(wid+width1,height))
  17. til.paste(img,(0,0))
  18. til.paste(rev,(width1,0))
  19. til.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement