An open API service indexing awesome lists of open source software.

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.

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
![glados-original](/examples/glados.gif)

![glados-glitched](/examples/glados-glitched.gif)

![peacemaker-original](/examples/peacemaker.jpg)

![peacemaker-glitched](/examples/peacemaker-glitched.jpg)

![reaper_core-original](/examples/reaper_core.png)

![reaper_core-glitched](/examples/reaper_core-glitched.png)

![securitay-original](/examples/securitay.jpg)

![securitay-glitched](/examples/securitay-glitched.jpg)

![watch_doge-original](/examples/watch_doge.jpg)

![watch_doge-glitched](/examples/watch_doge-glitched.jpg)