Media Glitch Library for Python
GlitchArt is a Python library that applies a glitch effect to image and video files. It does so by corrupting JPEG frames on random bytes, without screwing up files. Supported media formats: JPEG, PNG, WebP, MP4.
Pillow, which is automatically installed.- Videos require
ffmpegandffprobeavailable in PATH.
$ pip3 install glitchartimport glitchart
glitchart.jpeg("starrynight.jpg")Read the source code for now, or use Python's help() built-in function. E.g.:
>>> import glitchart
>>> help(glitchart.jpeg)
...MIT © 2019-2020 Dan


