ansinator

Crates.ioansinator
lib.rsansinator
version0.2.3
sourcesrc
created_at2022-08-01 05:15:18.510804
updated_at2022-10-12 04:53:02.245084
descriptionA collection of programs to convert images to various character representation
homepage
repositoryhttps://github.com/dax99993/ansinator
max_upload_size
id636535
size54,903
ElSucioDan (dax99993)

documentation

README

github crates

Ansinator is a collection of CLI programs to convert images to various character representation with support for ANSI escape code sequence

Demo

Installation

Cargo:

You can install the binary crate directly

cargo install ansinator 

Manual Installation:

you can clone ansinator repo and build it locally

git clone https://github.com/dax99993/ansinator
cd ansinator 
cargo install --path .

Programs

  • Ascii

  • Block

  • Braile 8-dot

  • Uniblock (sextant)

Todo

  • Best fitting ascii character analysis
  • Simple animation

License

MIT

Compatibility

This application was design to work in any unicode terminal but the result might look different depending on the terminal font and settings. Testing has been performed only on Alacritty, Kitty, ST and rxvt-unicode, using the JetBrains Mono font.

Ascii

Probably will work for all terminals

  • Alacritty working
  • Kitty working
  • ST working
  • rxvt-unicode working except for truecolor, use terminalcolor instead

Braile

Probably will work on all terminals supporting Unicode Glyphs

  • Alacritty working
  • Kitty working
  • ST working
  • rxvt-unicode working

Block

Probably will work on all terminals supporting Unicode Glyphs

  • Alacritty working
  • Kitty working
  • ST working
  • rxvt-unicode working except for truecolor, use terminalcolor instead

Uniblock

Probably will work on all terminals supporting Unicode Glyphs, but it also depends on the way the terminal handles sextant characters.

  • Alacritty working but might look weird depending on the x,y character offset and the font
  • Kitty working
  • ST working but might look weird depending on the x,y character offset and the font
  • rxvt-unicode not working missing sextant characters (might be a misconfiguration of my part of the fonts)

Bugs

If find any bug or weird behaviour send an email to dax99993@gmail.com

Log

  • 0.2.3 Fixed bug in fixed background color for ascii, braile and uniblock, also fixed background color extension to end of line on some terminals.
  • 0.2.2 Fixed convertion in braile and block, and fixed resizing.
  • 0.2.1 added both GRADIENT mode with PATTERN mode in ascii, and change help message and flags.
  • 0.2.0 replace GRADIENT mode with PATTERN mode in ascii.
  • 0.1.1 Uniblock convertion added, and extra options as fixed foreground and background
  • 0.1.0 Basic ascii, braile, block
Commit count: 18

cargo fmt