https://github.com/taga3s/ascii-art-gen
A CLI tool that generates ASCII Art from any image you like.
https://github.com/taga3s/ascii-art-gen
ascii-art cli go
Last synced: 7 months ago
JSON representation
A CLI tool that generates ASCII Art from any image you like.
- Host: GitHub
- URL: https://github.com/taga3s/ascii-art-gen
- Owner: taga3s
- License: mit
- Created: 2024-05-26T08:00:15.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-18T09:25:44.000Z (about 1 year ago)
- Last Synced: 2025-01-16T13:18:21.830Z (9 months ago)
- Topics: ascii-art, cli, go
- Language: Go
- Homepage:
- Size: 278 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ascii-art-gen
A CLI tool for generating ASCII Art from any image you like.

## Usage
Here is basic command. It supports `.jpg (.jpeg)` and `.png` image.
```
$ ascii-art-gen ./cat.png
```You can use `--threshold` or `-t` option to use any threshold. The default threshold is determined automatically by [OTSU's method](https://en.wikipedia.org/wiki/Otsu%27s_method).
```
$ ascii-art-gen -t 128 ./cat.png
```You can use `--magnification` or `-m` option to control the size of the ascii art. The default magnification is 1.0.
```
$ ascii-art-gen -m 2.0 ./cat.png
```## Project setup
- run app
```
$ go run main.go
```- format
```
$ make fmt
```- test
```
$ make test
```- build
```
$ make build
```## License
MIT