Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tapnisu/tapciify
CLI tool for converting your images into ASCII art
https://github.com/tapnisu/tapciify
ascii cli image rust video
Last synced: 2 months ago
JSON representation
CLI tool for converting your images into ASCII art
- Host: GitHub
- URL: https://github.com/tapnisu/tapciify
- Owner: tapnisu
- License: mit
- Created: 2022-09-22T08:53:41.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-17T03:36:29.000Z (7 months ago)
- Last Synced: 2024-07-17T06:16:45.298Z (7 months ago)
- Topics: ascii, cli, image, rust, video
- Language: Rust
- Homepage: https://docs.rs/tapciify/
- Size: 2.89 MB
- Stars: 15
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Tapciify
CLI tool for converting your images into ASCII art
## Requirements
1. CC linker (Windows - Microsoft Visual Studio with C++ Support) (Linux - gcc)
2. [Rust](https://www.rust-lang.org/tools/install)
> **Important**:
> Current minimal Rust version is 1.74!## Installation
Using cargo:
```bash
cargo install tapciify --locked
```Using cargo-binstall:
```bash
cargo binstall tapciify --locked -y
```## Converting image
1. Run: `tapciify -i imagePath -w imageWidth` for image.
2. Run: `tapciify -i imagePath -w imageWidth -r` for reversed colors.
## Converting video
In this example I set framerate to 24 (but you can use any another)
> Requires ffmpeg
1. Make frames from video into dir:
```bash
mkdir frames; ffmpeg -i bad_apple.mkv frames/%08d.jpeg
```2. Run:
```bash
tapciify -i frames/* -w videoWidth -f 24
```## Examples
| Original | ASCII | ASCII colored | Pixels | Braille | Braille colored | Background string |
| ---------------------------------------------- | ------------------------------------------------- | -------------------------------------------------------- | ----------------------------------------------------------------------- | ---------------------------------------------------- | -------------------------------------------------------- | --------------------------------------------------------------------------------- |
| ![Original Image](assets/examples/ferris.webp) | ![ASCII art](assets/examples/ascii.webp) | ![ASCII colored art](assets/examples/ascii-colored.webp) | ![ASCII art using pixels (█ symbol)](assets/examples/ascii-pixels.webp) | ![Braille](assets/examples/braille.webp) | ![Braille colored](assets/examples/braille-colored.webp) | ![Background string](assets/examples/background-string.webp) |
| `Original image` | `tapciify -i ./assets/examples/ferris.webp -w 64` | `tapciify -i ./assets/examples/ferris.webp -w 64 -c` | `tapciify -i ./assets/examples/ferris.webp -w 64 --pixels` | `tapciify -i ./assets/examples/ferris.webp -w 64 -b` | `tapciify -i ./assets/examples/ferris.webp -w 64 -bc` | `tapciify -i ./assets/examples/bad-apple.webp -w 64 --background-string badapple` |