AsciiArt

command module
v0.0.0-...-0a07a60 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2019 License: GPL-3.0 Imports: 22 Imported by: 0

README

AsciiArt

A tool written in go to translate picture to ascii text and image.

Usage

Download the corresponding executable file from bin folder. Then you can run the command below to get the help messages:

./ascii_converter -h 

Usually, it is enough only pass the image-path or image-url parameter.

./ascii_converter.exe -image-url="https://b-ssl.duitang.com/uploads/item/201406/28/20140628084407_WkunE.thumb.700_0.jpeg" -image-out-path="test-xxx.png"

./ascii_converter.exe -image-path="./test.png"

# Print the ascii text to a file.
./ascii_converter.exe -image-path="./test.png" > test.txt

If you want to output an image file, just add the image-out and iamge-out-path options.

# this will create an image  with ascii strings.
./ascii_converter.exe -image-url="https://b-ssl.duitang.com/uploads/item/201406/28/20140628084407_WkunE.thumb.700_0.jpeg" -image-out-path="test.png" -image-out=true

Besides, you can access all the functions with your browser. Just run:

# This command will start a web server on 127.0.0.1:8080
./ascii_converter --server=true

Just use you browser to visit http://127.0.0.1:8080, you will get a handy web ui to convert your image.

Executable files in bin folder

linux x86_64 bin/ascii_converter
windows x86_64 bin/ascii_converter.exe
OSX bin/ascii_converter_osx

Build

git clone https://github.com/xrlin/AsciiArt.git
go build -o /path/to/store/executable/file ./AsciiArt/*.go

ScreenShots

Web UI

web-ui

example1

example1

Terminal

example2

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL