Skip to content

A CLI tool that generates ASCII Art from any image you like.

License

Notifications You must be signed in to change notification settings

taga3s/ascii-art-gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ascii-art-gen

A CLI tool for generating ASCII Art from any image you like.

ascii-art-gen

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.

$ 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 <image>
  • format
$ make fmt
  • test
$ make test
  • build
$ make build

License

MIT