Crates.io | eilpx |
lib.rs | eilpx |
version | 0.2.1 |
source | src |
created_at | 2018-12-31 02:51:27.213618 |
updated_at | 2019-01-03 17:24:59.427032 |
description | Command line tool to pixel sort images based on colour, alpha, or luma values. |
homepage | https://github.com/drklee3/eilpx |
repository | https://github.com/drklee3/eilpx.git |
max_upload_size | |
id | 104651 |
size | 719,346 |
A command line tool to pixel sort images based on red, green, blue, alpha, or luma values.
Requires Rust 2018. Eilpx can be installed via crates.io with the following command.
cargo install eilpx
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
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 |
---|---|
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 |
---|---|