Skip to main content

A package to glitch images

Project description

glitch-this!

Create glitched images and GIFs, with highly customizable options!


Pypi release Twitter Stars Python 3 GitHub issues GitHub contributors License

A commandline tool + python library to glitchify images and even make GIFs out of them! Featuring 10 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 EASIER THAN EVER TO USE! 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

What others have to say ~

Changelog

View the changelog here

FEATURES!

  • Choose from 10 gradually different levels of glitching intensity! Want just a tiny bit of glitching, enough to make your image look cool? - use level 2 (my favorite)!
  • Create Glitched GIFs from a normal image! That's right, before this tool, I had to manually download each image from ImageGlitcher, save them, and then head to a GIF creation website. Now you can do it all at once!
  • Customize the number of frames in a GIF as well as their duration - all from the comfort of your terminal!
  • Add scan lines for a retro CRT effect!
  • Oh and did I mention, color offset? Just like ImageGlitcher, this tool glitches the color channels as well as the pixels - for very convincing looking glitched images!

Requirements

  • python 3
  • pillow
  • numpy

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

glitch_this-0.0.7.2.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

glitch_this-0.0.7.2-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file glitch_this-0.0.7.2.tar.gz.

File metadata

  • Download URL: glitch_this-0.0.7.2.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.4

File hashes

Hashes for glitch_this-0.0.7.2.tar.gz
Algorithm Hash digest
SHA256 38ffdca35cae5378321a862ae242d0ba6b488ac090dd926097c0e5cf688da6db
MD5 acd0cdf09bb284e23a7ee02739d913ad
BLAKE2b-256 26d85f6ceae4c36afc2846d8b3a521d7d88f9c5bb99931f1c10c1455f79827b7

See more details on using hashes here.

File details

Details for the file glitch_this-0.0.7.2-py3-none-any.whl.

File metadata

  • Download URL: glitch_this-0.0.7.2-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.4

File hashes

Hashes for glitch_this-0.0.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a76546a5784b304429f6947f747bebb3f4343180fc6b765f4ac70212f86cbcce
MD5 70aa71d86e41bb74f29beb6d55ec4134
BLAKE2b-256 6cfe2ed138570bac416161ca330afd9d2c660595d7227ea89c61dfeb3bfc6d37

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page