eilpx

Crates.ioeilpx
lib.rseilpx
version0.2.1
sourcesrc
created_at2018-12-31 02:51:27.213618
updated_at2019-01-03 17:24:59.427032
descriptionCommand line tool to pixel sort images based on colour, alpha, or luma values.
homepagehttps://github.com/drklee3/eilpx
repositoryhttps://github.com/drklee3/eilpx.git
max_upload_size
id104651
size719,346
Derrick Lee (drklee3)

documentation

README

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.

cargo install eilpx

Usage

USAGE:
    eilpx [FLAGS] [OPTIONS] --input <input> --output <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 <bound>            Sets threshold to be max or min [default: min]  [possible values: min, max]
    -d, --direction <direction>    Sets direction of sorting [default: right]  [possible values: up, right, down, left]
    -i, --input <input>            Sets the input file
    -m, --mode <mode>              Sets mode of sorting [default: luma]  [possible values: red, green, blue, alpha,
                                   luma]
    -o, --output <output>          Sets the output file
    -t, --threshold <threshold>    Sets threshold of sorting

Examples

Command

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

# sorts leftwards based on luma with min bound of 50
eilpx -i img/lighthouse.jpg -o img/lighthouse_sorted.jpg -d left
Original Sorted
Original Sorted
Commit count: 51

cargo fmt