Download the rscale2x binary from the releases page. Run the binary locally using rscale2x
. To use the binary system-wide,
place it in /usr/local/bin
or $HOME/bin
.
Build from source
Install cargo and rust.
Download the source of the project, then run cargo build --release
in the directory to generate the binary
in ./target/release/
Upscale and save images using the scale2x algorithm.
Usage: rust_scale2x [OPTIONS] --input <INPUT> --output <OUTPUT>
Options:
-i, --input <INPUT> Input image file path
-o, --output <OUTPUT> Output image file path
-b, --blur <BLUR> Gaussian blur [default: 0]
-u, --unsharpen <UNSHARPEN> Unsharpen [default: 0]
--hue <HUE> Hue shift [default: 0]
-h, --help Print help information
-V, --version Print version information
Execution times were recorded using the 8-Core M1 Pro chip.
rscale2x | scale2x | |
---|---|---|
tree.png (3741x2494) | 3.9s | 4.5s |
grid.png (32x32) | 0.00186s | 0.00153s |
tree.png: Unsplash