https://github.com/sajattack/glitch
Randomly changes binary file data in order to create glitch art.
https://github.com/sajattack/glitch
Last synced: about 1 year ago
JSON representation
Randomly changes binary file data in order to create glitch art.
- Host: GitHub
- URL: https://github.com/sajattack/glitch
- Owner: sajattack
- License: mit
- Created: 2015-05-24T03:32:02.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2020-02-10T19:49:43.000Z (over 6 years ago)
- Last Synced: 2025-05-01T00:47:57.309Z (about 1 year ago)
- Language: Python
- Size: 11.7 MB
- Stars: 54
- Watchers: 4
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# glitch.py
Randomly changes binary file data in order to create glitch art.
## Usage
```
python glitch.py [percent] [outfile]
infile: the file to take as input
percent: the percentage of the file to corrupt, by default, 0.1%
outfile: the file to output, by default -glitched.
```
Play around with different values for percent, 0.1 seems to work okay for most image formats, 0.01 worked okay for video.
Also, try different filetypes and share your results!
I noticed different image viewers sometimes perform differently with these glitched images. They either display the image differently or not at all.
Windows Photo Viewer worked best for me. As a result, I usually screenshot the glitches from Windows Photo Viewer so they always display "correctly".
## Examples









