i2a-rs

Crates.ioi2a-rs
lib.rsi2a-rs
version0.1.0
sourcesrc
created_at2024-03-21 01:55:53.491626
updated_at2024-03-21 01:55:53.491626
descriptionA tool converting images to ASCII graph
homepage
repositoryhttps://github.com/hsfzxjy/i2a-rs
max_upload_size
id1181141
size6,787,820
Xie Jingyi (hsfzxjy)

documentation

README

i2a-rs

Yet another Image to ASCII Art tool

Highlights

  • support for multiple formats i2a-rs can render static as well as animated images
  • responsive i2a-rs automatically resizes images when terminal size changed
  • efficient i2a-rs calls ffmpeg to decode GIFs and caches rendered stuff for next time use

Install

Currently you can install by cloning the repo and build the binary:

git clone https://github.com/hsfzxjy/i2a-rs/
cd i2a-rs
cargo build --release  
# The release version has better performance while rendering GIFs

ffmpeg

i2a-rs requires ffmpeg to decode GIFs, so make sure the command ffmpeg is available before rendering a GIF image. You may follow this link to get it installed correctly.

Usage

Render a static image (JPEG, PNG, etc.)

cargo run --release images/google.png

Google-Demo

Redner a GIF image and play infinitely

cargo run --release images/cube.gif

or just play for one cycle

cargo run --release images/cube.gif --once

GIF-Demo

Commit count: 16

cargo fmt