Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from PIL import Image
- from glitch_this import ImageGlitcher
- import random
- glitcher = ImageGlitcher()
- random.seed(random.randint(1, 20000000))
- print(random.randint(1, 20000000))
- x = random.random()
- print(x)
- img = Image.open(r'D:\Glitch_art\278291.jpg')
- glitch_img = glitcher.glitch_image(img, 5, color_offset=True, seed=random.randint(1, 20000000))
- glitch_img.save(r'D:\Glitch_art\Glitch_programming\output\test_out.jpg')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement