A pixel sorting library. Sorts pixels in an image based on input parameters and saves intermediate steps in the sort process as separate images that can then be used to create a video or gif.
Note: this library is still under development and not all planned features are available.
Only works on PNG images (for now)
Only saves final sorted image, no intermediate images (for now)
Only sorts in a straight line (for now)
Only sorts using std::sort() (for now)
Only sorts entire image, cannot sort segments (for now)
Sort value not yet exposed
Examples
Original
Sorted
Sorted
pixel-glitch images/profile.png
pixel-glitch images/profile.png --reverse
pixel-glitch images/monterey.png
pixel-glitch images/monterey.png --reverse
pixel-glitch images/sunset.png
pixel-glitch images/sunset.png --reverse
Compiling
make compile
Running
pixel-glitch images/profile.png
CLI Options
Available features are emboldened in the table below.