eilpx

crates.io Build Status

A command line tool to pixel sort images based on red, green, blue, alpha, or luma values.

Installation

Requires Rust 2018. Eilpx can be installed via crates.io with the following command.

bash cargo install eilpx

Usage

```text USAGE: eilpx [FLAGS] [OPTIONS] --input --output

FLAGS: -h, --help Prints help information -y Overwrite output files without asking -n Do not overwrite output files, exit immediately if output file already exists -V, --version Prints version information -v Sets the level of verbosity

OPTIONS: -b, --bound Sets threshold to be max or min [default: min] [possible values: min, max] -d, --direction Sets direction of sorting [default: right] [possible values: up, right, down, left] -i, --input Sets the input file -m, --mode Sets mode of sorting [default: luma] [possible values: red, green, blue, alpha, luma] -o, --output Sets the output file -t, --threshold Sets threshold of sorting ```

Examples

Command

```bash eilpx -i img/tamsui.jpg -o img/tamsui_sorted.jpg -b max -t 175

-i img/tamsui.jpg input file

-o img/tamsui_sorted.jpg output file

-b max -t 175 sort only pixels with a max luma value of 175

```

Original | Sorted | --------------------------- | -------------------------------- | Original | Sorted |

Command

```bash

uses default settings: horizontally based on luma with min bound of 50

eilpx -i img/lighthouse.jpg -o img/lighthouse_sorted.jpg ```

Original | Sorted | ------------------------------- | ------------------------------------ | Original | Sorted |