Advertisement
lesliemwubbel

glitch_this_test_script.py

Nov 24th, 2020
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.43 KB | None | 0 0
  1. from PIL import Image
  2. from glitch_this import ImageGlitcher
  3. import random
  4.  
  5. glitcher = ImageGlitcher()
  6.  
  7. random.seed(random.randint(1, 20000000))
  8. print(random.randint(1, 20000000))
  9. x = random.random()
  10. print(x)
  11. img = Image.open(r'D:\Glitch_art\278291.jpg')
  12.  
  13. glitch_img = glitcher.glitch_image(img, 5, color_offset=True, seed=random.randint(1, 20000000))
  14.  
  15. glitch_img.save(r'D:\Glitch_art\Glitch_programming\output\test_out.jpg')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement