Crates.io | rustii |
lib.rs | rustii |
version | 0.1.2 |
source | src |
created_at | 2024-04-26 15:35:36.199338 |
updated_at | 2024-06-15 12:06:33.356431 |
description | Converts images to ASCII art |
homepage | |
repository | https://github.com/ndr3www/rustii/tree/main |
max_upload_size | |
id | 1221535 |
size | 79,030 |
cargo install rustii
Just download the appropriate binary from latest release and copy it to a directory specified in your $PATH
, for example:
sudo cp rustii /usr/bin
environment
in your search bar and hit Enter
Environment Variables...
buttonEdit...
New
and then Browse...
, then find and select the rustii folderOK
and you're done!Basically rustii
has 2 commands:
render
- generates ASCII art from a specified imageopen
- prints specified ASCII art to the terminal/consolerustii
compresses generated ASCII art file by default, so if you want to get the raw ASCII art, you can simply redirect the output of the open
command, for example: rustii open ascii.txt > raw_ascii.txt
Type rustii --help
or rustii -h
to get more details
rustii render avatar.jpg --output ascii.txt --scale 0.22 0.09 --contrast 10
rustii render catedral.jpg --output ascii.txt --scale 0.13 0.053
rustii render woman.jpg --output ascii.txt --scale 0.09 0.032 --contrast -5