https://github.com/daniqss/image-to-ascii
create images made from ascii characters
https://github.com/daniqss/image-to-ascii
Last synced: 2 months ago
JSON representation
create images made from ascii characters
- Host: GitHub
- URL: https://github.com/daniqss/image-to-ascii
- Owner: daniqss
- Created: 2024-07-16T22:18:24.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-03-02T20:06:50.000Z (3 months ago)
- Last Synced: 2025-03-02T20:32:02.560Z (3 months ago)
- Language: Go
- Size: 1.19 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# image to ascii
tool to generate ascii art images from other images
## how to run
```bash
go run . --scale 2 --print --colored path/to/image.jpg
# or
make run ARGS="--scale 2 --print --colored image.png path/to/image.jpg"
```## endpoints and example on how to get from server
```bash
curl -X GET "http://localhost:3000/api/v1/fonts"curl -X POST -F "image=@test/image.png" "http://localhost:3000/api/v1/?scale=16&colored=true&font=UbuntuNerdFont-Bold" --output output_ascii.png
```
there are 3 query params:
- `scale`
- int
- default: 8
- `density`
- string
- default: " .;coPO#@"
- `colored`
- bool
- default: false
- `font`
- string
- default: the used by [gg](https://pkg.go.dev/github.com/fogleman/[email protected]#section-readme) package`font` must be one of the fonts that are available on the server, you can get the list of available fonts by calling the first endpoint