MCPcopy Index your code
hub / github.com/dominic-codespoti/ascii-gen

github.com/dominic-codespoti/ascii-gen @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
18 symbols 27 edges 2 files 3 documented · 17% updated 16mo ago★ 162

Browse by type

Functions 12 Types & classes 6
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Rust ASCII Art Converter

This Rust tool converts images into ASCII art. It takes an image file as input, resizes it according to specified width and height parameters, and then converts the image into ASCII characters.

Installation

Use cargo to quickly and easily install ascii-gen:

cargo install ascii-gen

Usage

Run the tool:

ascii-gen path/to/your/image.jpg

Optional parameters:

  • --width: Set the width of the output (default: 80)
  • --height: Set the height of the output (default: 80)
  • --gamma: Set the gamma of the ASCII art (default: 1.0)
  • --live: Enable live editing of the ASCII art (default: false)

Examples:

ascii-gen path/to/your/image.jpg --width 120 --height 60
ascii-gen path/to/your/image.jpg --width 120 --height 60 --live

Examples

Input

Input

Output (Small)

Output

Output (Large)

Output Large

Dependencies

  • clap - Command-line argument parser for Rust.
  • image - Image processing library for Rust.
  • crossterm - Cross-platform terminal manipulation library for Rust.
  • ratatui - TUI (Text-based User Interface) library for Rust.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Special thanks to the Rust community for their support and contributions.

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Method 9
Class 4
Function 3
Enum 1
Interface 1

Languages

Rust100%

Modules by API surface

src/main.rs12 symbols
src/converter.rs6 symbols

For agents

$ claude mcp add ascii-gen \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page