GithubHelp home page GithubHelp logo

anartisticengineer / glitch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sajattack/glitch

0.0 0.0 0.0 12 MB

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

License: MIT License

Python 100.00%

glitch's Introduction

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

glitch's People

Contributors

hellerve avatar sajattack avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.