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

https://github.com/phoenixr-codes/im2ansi

Convert images into ANSI art (TXT, HTML & SVG)
https://github.com/phoenixr-codes/im2ansi

ansi art fetch html image neofetch svg terminal waifufetch

Last synced: 22 days ago
JSON representation

Convert images into ANSI art (TXT, HTML & SVG)

Awesome Lists containing this project

README

          


im2ansi




`im2ansi` is a tool for turning images into ANSI art as seen above. It supports
ANSI (terminal), HTML and SVG output.

## Installation

Go to [Releases][] and download the executable for your system or install it via
[V][V language]:

```console
v install --git https://github.com/phoenixr-codes/im2ansi
```

## Building

Building requires a [V compiler][V language].

```console
v .
```

## Example Usage

> **Show help**
> ```bash
> im2ansi --help
> ```

> **Genrate an ANSI art from `image.png` of size 30 with seed 123 and character set {P,I,K,A,C,H,U}**
> ```bash
> im2ansi -s 30 --path image.png --seed 123 -c PIKACHU > output.ansi
> ```

> **Generate an ANSI art as SVG from `image.jpg` of size 50 and enable debugging**
> ```bash
> im2ansi --path image.jpg -s 50 --format svg --log DEBUG > output.svg
> ```

> **Generate an ANSI art as HTML from `image.jpg` with embedded text**
> ```bash
> im2ansi --path image.jpg -s 80 --format html -c THEENDISNEVER --cycle > output.html
> ```

[Releases]: https://github.com/phoenixr-codes/im2ansi/releases
[V language]: https://vlang.io/