sorts pixels, only works with png files (for now), dependancy on libpng
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.
-
-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
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.