Skip to content

Python scripts for databending images by editing them as audio data using SoX.

Notifications You must be signed in to change notification settings

Roachbones/sockbend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sockbend

PySocks

Python scripts for databending images by editing them as audio data using SoX.

What's databending?

Databending is editing files as if they are of a different format. Specifically, Sockbend edits bitmap files as if they were audio files. This creates cool glitchy-looking distortions in the image. You can do this with Audacity, but it's slow and error-prone; you have to be careful not to destroy the header data or make the image array the wrong size. Sockbend takes care of both of these limitations and lets you databend images through the Python shell. It can also make gifs. Examples are in the examples folder and the examples.py script. (Beware that the gifs might be unsafe for those with photosensitive epilipsy.)

Requirements

Sockbend requires pysox and Pillow. If you're on Ubuntu, the following commands should install everything:

sudo apt install sox
pip3 install sox
git clone https://github.com/Roachbones/sockbend.git

About

Python scripts for databending images by editing them as audio data using SoX.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages