Skip to content
Simple image glitcher suitable for producing nice looking lockscreens
Branch: master
Clone or download
r00tman Use NRGBA instead of RGBA for intermediate images (issue #6) (1.6s ->…
… 1.2s on 3000x2000 images, since encoding is now essentially free)
Latest commit 825232d Mar 28, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
shots Add examples Mar 23, 2019
LICENSE Create LICENCE (issue #5) Mar 24, 2019
README.md Update README.md Mar 25, 2019
main.go Use NRGBA instead of RGBA for intermediate images (issue #6) (1.6s ->… Mar 28, 2019

README.md

corrupter

Simple image glitcher suitable for producing nice looking i3lock backgrounds

Getting Started

$ git clone https://github.com/r00tman/corrupter
$ cd corrupter && go build
$ ./corrupter -h
$ ./corrupter shots/test2.png out.png && xdg-open out.png

At the moment, you can only pass and output png images. But that's enough to work well with scrot and i3lock.

Also, now there's corrupter-git AUR package maintained by alrayyes!

Less distorted image

Default config is pretty heavy-handed. To get less disrupted images you may want to reduce blur and distortion:

$ ./corrupter -mag 1 -boffset 2 shots/test2.png out.png && xdg-open out.png

Using with i3lock+scrot/swaylock+grim

Example lock script:

#!/usr/bin/env bash
tmpbg="/tmp/screen.png"
scrot "$tmpbg"; corrupter "$tmpbg" "$tmpbg"
i3lock -i "$tmpbg"; rm "$tmpbg"

Examples

All images are obtained using the default parameters. demo1 demo2 demo3

You can’t perform that action at this time.