Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

README.md

glitch.py

Randomly changes binary file data in order to create glitch art.

Usage

python glitch.py <infile> [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 <filename>-glitched.<fileext>

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

glados-glitched

peacemaker-original

peacemaker-glitched

reaper_core-original

reaper_core-glitched

securitay-original

securitay-glitched

watch_doge-original

watch_doge-glitched

About

Randomly changes binary file data in order to create glitch art.

Resources

License

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.