Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/destinecarma/image-to-ascii

A command-line tool in Rust that converts images into ASCII art.
https://github.com/destinecarma/image-to-ascii

ascii image image-to-ascii rust

Last synced: 5 days ago
JSON representation

A command-line tool in Rust that converts images into ASCII art.

Awesome Lists containing this project

README

        

# Image to Ascii

This is a simple rust program that converts an image to ascii art. It uses the [`image`](https://crates.io/crates/image) crate to read the image.

```
fff
fffffff
fffffffffff
fffffffffffffff
tfffffffffffffffi
tttfffffffffffiii
tttttfffffffiiiii
tttttttfffiiiiiii
ttttttttiiiiiiiii
ttttttttiiiiiiiii
ttttttttiiiiiiiii
ttttttttiiiiiiiii
ttttttttiiiiiiiii
ttttttttiiiiiiiii
ttttttttiiiiiiiii
ttttttttiiiiiiiii
CCCCttttttiiiiiii;;;;
CCCCCCCCttttiiiii;;;;;;;;
CCCCCCCCCCCCttiii;;;;;;;;;;;;
CCCCCCCCCCCCCCCCi;;;;;;;;;;;;;;;;
LLCCCCCCCCCCCCCf::;;;;;;;;;;;;;,,
LLLLCCCCCCCCCfff::::;;;;;;;;;,,,,
LLLLLLCCCCCfffff::::::;;;;;,,,,,,
LLLLLLLLCfffffff::::::::;,,,,,,,,
LLLLLLLLffffffff:::::::::,,,,,,,,
LLLLLLLLffffffff:::::::::,,,,,,,,
LLLLLLLLffffffff:::::::::,,,,,,,,
LLLLLLLLffffffff:::::::::,,,,,,,,
LLLLLLLLffffffff:::::::::,,,,,,,,
LLLLLLLLffffffff:::::::::,,,,,,,,
LLLLLLLLffffffff:::::::::,,,,,,,,
LLLLLLLfffffff :::::::,,,,,,,
LLLLLfffff :::::,,,,,
LLLfff :::,,,
Lf :,
```

## Usage

To run the program, use the following command:

```sh
cargo run --release --
```

The program will output the ascii art to the terminal.

To see more options, use the `-h` flag:

```sh
cargo run --release -- -h
```