Code provided from my blog post Turning Image Corruption into Art. A shell script that repeatedly corrupts an image and generates a video of it happening.
- Python
- ImageMagick
- ffmpeg
Optionally, parallel
./image_corrupt.sh [image_file]With ImageMagick installed, you can easily convert your image to other formats to see how the corruption changes.
magick [image_file_base].jpg [image_file_base].avif