Home

Awesome

<h1 align="center">glitch-this!</h1> <p align="center"><i>Create glitched images and GIFs, with highly customizable options!</i></p> <hr><p align="center"> <a href="https://pypi.org/project/glitch-this"><img alt="Pypi release" src="https://img.shields.io/pypi/v/glitch-this?color=red&label=pypi%20release&logo=pypi&logoColor=blue" /></a> <img alt="Stars" src="https://img.shields.io/github/stars/TotallyNotChase/glitch-this.svg?label=Stars&style=flat" /> <a href="https://pepy.tech/project/glitch-this"><img alt="Pypi downloads" src="https://pepy.tech/badge/glitch-this" /></a> <a href="http://www.python.org/download/"><img alt="Python 3" src="https://img.shields.io/badge/Python-3-yellow.svg"></a> <a href="https://github.com/TotallyNotChase/glitch-this/blob/master/LICENSE"><img src="https://img.shields.io/github/license/TotallyNotChase/glitch-this.svg" alt="License"/></a> </p>

A commandline tool + python library to glitchify images and even make GIFs out of them! Featuring 100 gradually different levels of glitching intensity! The algorithm used to create glitched images is a slightly modifed version of the popular ImageGlitcher tool's algorithm, so you can expect the glitched images to look really cool!

NOW WITH GIF TO GLITCHED GIF SUPPORT! Check out the docs!

If you like using this tool, please consider starring on Github!

demo

What are you waiting for? Import the library and get glitching!

NOTE : Works best with RGB/RGBA images

Checkout a web demo right here, courtesy of @pahefu

What others have to say ~

<a href="https://www.producthunt.com/posts/glitch-this?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-glitch-this" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=186201&theme=light" alt="glitch-this - Create highly customizable glitched images and GIFs! | Product Hunt Embed" style="width: 250px; height: 54px;" width="250" height="54" /></a>

FEATURES!

Changelog

View the changelog here

Requirements

These will be automatically installed when you install the library! (assuming you have python3)

Installation

Simply install glitch-this from pypi!

pip install glitch-this

(OR)

pip3 install glitch-this

Quick Start

Now that you have the library installed, all you need to do is invoke the script and pass in the params

glitch_this [IMAGE PATH] [GLITCH_LEVEL]

quick_basic

Try glitch_this -h for more info! Directly from your commandline!

Or, Check out the script docs!

Interested in the library? Check out the library docs!

DOCS! WHERE TO?!

Read the script docs!

Read the library docs!

Check out a full example using the library!

Whoa! Cool Glitches

Here's some glitched images generated from this script - of different intensity levels!

NOTE: All these images had -c parameter included, for color offset

Original image for reference:-

og_img

Glitched version - Level 2:-

glitched_2

Not badly glitched now is it?

Glitched version - Level 5:-

glitched_5

Well it's certainly starting to get glitchy

Glitched version - Level 8:-

glitched_8

I don't know what I'm looking at

Let's get some scan lines on there!

Glitched version (scan_lines)- Level 2:-

glitched_2_scan

Glitched version (scan_lines) - Level 5:-

glitched_5_scan

Glitched version (scan_lines) - Level 8:-

glitched_8_scan

That's neat, but how about some GIFs? Here's some GIFs from the same image:-

Note: All the GIFs use default values from FRAMES and DURATION, i.e 23 and 200 respectively

Glitched GIF - Level 2:-

glitched_gif2

Glitched GIF - Level 5:-

glitched_gif5

Glitched GIF - Level 8:-

glitched_gif8