GitHunt
S-

S-Rey/PixelSorting

An implementation in C of the pixel sorting algorithm used to glitch pictures.

PixelSorting

An implementation in C of the pixel sorting algorithm used to glitch pictures.

Getting Started

Prerequisites

In order to run the program, you need to have the following libraries and programs installed:

  • libpng
  • imagemagick

On Arch Linux

sudo pacman -S libpng
sudo pacman -S imagemagick 

On ubuntu

sudo apt-get install libpng-dev
sudo apt-get install imagemagick

On termux (Android)

apt install coreutils
apt install imagemagick

Cloning and compiling

After cloning the repo, go to its directory and run

make

After that, a bin/ directory which contains the executable should have been created.
To run the program, simply do:
./pixelsort [files] [options]

  • -i the path of the input file
  • -o the path of the output file
  • -t the threshold of bondary (integer from 0 to 255)
cd bin/
./pixelsort -i input.png -o output.png -t 70

Languages

C81.6%Makefile11.2%CMake7.2%

Contributors

Created June 18, 2017
Updated May 30, 2024