| Crates.io | imgr |
| lib.rs | imgr |
| version | 1.0.1 |
| created_at | 2023-11-04 18:27:00.268751+00 |
| updated_at | 2023-11-20 16:00:33.115283+00 |
| description | image to ascii converter |
| homepage | |
| repository | https://github.com/shamxl/imgr |
| max_upload_size | |
| id | 1025364 |
| size | 23,767 |
A rust-powered image-to-ascii converter
Usage:
imgr [options] <path to image>
Options:
Color:
-c or --coloredStyles:
-s <style> or --style <style>Available options:
Resize:
Enable image resizing:
-r or --resizeSet the resizing scale:
-S or --scaleDefault scale: 2
Output
-o <path to file> or --output <path to file>
Using Cargo:
cargo install imgr
From Source:
git clone https://github.com/shamxl/imgr.git
cd imgr
cargo build --release
Note:
As I continue my journey with Rust, please pardon any imperfections in this program. They're all part of the learning process.
Q: I installed imgr using Cargo, but I can't find the binary. Where is it?
A: By default, Cargo installs binaries in the .cargo directory. To make imgr easily accessible, consider adding the Cargo bin directory to your system's PATH. You can find the location of the Cargo bin directory by running cargo install --help and looking for the "bin" section.
Q: How can I add the Cargo bin directory to my system's PATH?
A: On Unix-based systems (Linux, macOS), you can add the following line to your shell profile file (e.g., .bashrc, .zshrc):
export PATH="$PATH:$HOME/.cargo/bin"
On Windows, you can add the Cargo bin directory to the system environment variables.
After making these changes, restart your terminal, and you should be able to run imgr from anywhere in the command line.