Package: glitch-this
glitch-this!Create glitched images and GIFs, with highly customizable options!A commandline tool +pythonlibrary to glitchify images andeven make GIFsout of them!
Featuring100 gradually different levels of glitching intensity! The algorithm used to create glitched images is a slightly modifed version of the popularImageGlitchertool's algorithm, so you can expect the glitched images to look really cool!NOW WITH GIF TO GLITCHED GIF SUPPORT! Check out thedocs!If you like using this tool, please considerstarring on Github!What are you waiting for? Import the library and get glitching!NOTE: Works best with RGB/RGBA imagesCheckout a web demo righthere, courtesy of @pahefuWhat others have to say ~#1 hot in r/python#1 hot in r/programming#1 hot in r/broken_gifs#1 hot in r/glitch_art#4 product of the day in producthuntFEATURES!Choose anyglitching intensitybetween 0.1 and 10.0, yes those are floats!Each level is gradually different!Want just a tiny bit of glitching, enough to make your image look cool? - use level 2 (my favorite)!Addscan linesfor a retro CRT effect! Addcolor offsetfor even cooler glitching!CreateGlitched GIFsfrom a normal image!That's right, before this tool, I had to manually download each image fromImageGlitcher, save them, and then head to a GIF creation website.Now you can do itallat once!Glitch normalGIFsintoglitched GIFs!Customizestepof glitching, you can glitchevery step'th frameinstead of all frames!Increment/Decrement glitching intensitywhile glitching every frame!So you can have a frameglitched with intensity 2, but thenext can be 5, thenext to that can be 8and so on!Customize thenumber of framesin a GIF as well as theirduration- all from the comfort of your terminal!Set how many times the GIF shouldloop!Set your own customseedfor a predictable RNG!ChangelogView the changeloghereRequirementspython 3pillownumpyThese will be automatically installed when you install the library! (assuming you havepython3)InstallationSimply installglitch-thisfrompypi!pip install glitch-this(OR)pip3 install glitch-thisQuick StartNow that you have the library installed, all you need to do is invoke the script and pass in the paramsglitch_this [IMAGE PATH] [GLITCH_LEVEL]Tryglitch_this -hfor more info! Directly from your commandline!Or, Check out thescript docs!Interested in the library? Check out thelibrary docs!DOCS! WHERE TO?!Read thescript docs!Read thelibrary docs!Check out afull exampleusing the library!Whoa! Cool GlitchesHere's some glitched images generated from this script - of different intensity levels!NOTE: All these images had-cparameter included, for color offsetOriginal image for reference:-Glitched version - Level 2:-Not badly glitched now is it?Glitched version - Level 5:-Well it's certainly starting to get glitchyGlitched version - Level 8:-I don't know what I'm looking atLet's get somescan lineson there!Glitched version (scan_lines)- Level 2:-Glitched version (scan_lines) - Level 5:-Glitched version (scan_lines) - Level 8:-That's neat, but how about some GIFs? Here's some GIFs from the same image:-Note: All the GIFs use default values fromFRAMESandDURATION, i.e 23 and 200 respectivelyGlitched GIF - Level 2:-Glitched GIF - Level 5:-Glitched GIF - Level 8:-