A command line pixel sorting utility
Find a file
Leonid Darovskikh e548138f31 updated readme
2017-08-24 21:54:01 +02:00
src added line-wise mode, updated the readme 2017-08-24 20:54:08 +02:00
.gitignore added readme 2017-05-21 23:06:24 +02:00
lineSorter.hxml added basic files 2017-05-19 16:14:48 +02:00
README.md updated readme 2017-08-24 21:54:01 +02:00

lineSorter

Building

To build run "haxe lineSorter.hxml". You'll need the format library, which can be installed by using "haxelib install format".

Running

Run by executing "neko bin/lineSorter.n -i filename" from the command line. Only PNG is supported right now. The resulting file will be located at filename-output.png.

Options:

The following arguments can be used to change the behaviour of the utility:

  • -i filename - to specify the input file (required).
  • -m (h|s|l|r|g|b) - to specify the criterium used to sort the values. H, S, L, R, G, B stand for hue, saturation, lightness(default), red, green and blue respectively.
  • -l - to use the line-wise mode, sorts single pixel values within every vertical line of the image.

Album with examples

http://imgur.com/a/gOzgk