1 unstable release
0.1.2 | Jun 15, 2024 |
---|---|
0.1.1 |
|
0.1.0 |
|
#836 in Images
36 downloads per month
48KB
143 lines
Installation
Through cargo
cargo install rustii
Manually
Linux
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
Windows
- Download rustii.exe from latest release
- Create a folder named rustii anywhere you like
- Copy rustii.exe to the newly created folder
- Type
environment
in your search bar and hitEnter
- Click the
Environment Variables...
button - Select Path variable and click
Edit...
- Click
New
and thenBrowse...
, then find and select the rustii folder - Click
OK
and you're done!
Usage
Basically rustii
has 2 commands:
render
- generates ASCII art from a specified imageopen
- prints specified ASCII art to the terminal/console
rustii
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
Examples
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
Dependencies
~6–14MB
~171K SLoC