Skip to content
/ psort Public

pixel sorter, a command line application to create a visual effect known as pixel sorting

Notifications You must be signed in to change notification settings

g4stly/psort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

psort

sorts pixels, only works with png files (for now), dependancy on libpng

usage

psort [options] input_filename.png [options]

basically, if you dont specify the input file with the -s option, the first argument that isn't an option should be the input filename.

options may appear before or after the input filename.

options

  • -s, --source: filename for image to be sorted

  • -d, --destination: filename of image to be written

  • -m, --mask: filename for image mask

  • -g , --gt : sort pixels with a value greater than

  • -l , --lt : sort pixels with a value less than

  • -o, --or: sort pixels that are --gt OR --lt (default)

  • -a, --and: sort pixels that have a value --gt AND --lt

  • -v , --value : sort pixels according to one of the qualities below. you may abbreviate to the first letter.

    • luma: brightness
    • red: restrict to only red colors, then sort by brightness, not saturation
    • blue: restrict to only blue colors, then sort by brightness, not saturation
    • green: restrict to only green colors, then sort by brightness, not saturation
  • -r, --reverse: sort right to left instead of the default, which is left to right

examples

psort -g80 -l40 -doutput.png input.png

psort -g20 -a -l70 -dout.png in.png

psort --gt 40 --and --lt 120 --destination dest.png --source source.png

psort -vb -g1 -dout.png in.png

psort --value blue --gt 40 -dout.png in.png

stuff like that.

About

pixel sorter, a command line application to create a visual effect known as pixel sorting

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published