Skip to content

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

Notifications You must be signed in to change notification settings

S-Rey/PixelSorting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published