SHARE
TWEET

KEK

AltronZ Jul 18th, 2019 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top