img2ascii

command module
v0.0.0-...-336af14 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: MIT Imports: 4 Imported by: 0

README

Img2Ascii

Simple command-line-tool to convert an png or jpeg image to ascii-art

Run

./img2ascii --help // for help
./img2ascii picture.png // converts and prints picture.png to stdout
Options
  • -o - Output file (default stdout)
  • -scale - Scales the input images
Result
                         ..                                                     
                        .-*-.                            ...                    
                        ,*+++-.                        .-****,                  
                        ,*+##+-.                     .,*++++#+.                 
                        ,*+###+-.                  .,**+++++##-                 
                        -*++###+*,......         .,**++++++++#+.                
                       .*+++**+++++*****--*----,-*++++++++++++#.                
                      ,*********++++++++++++++++++++++#####+++#.                
                  ..,-*********++++++++++++++++++#++++#####++#+                 
               .,--***********+++++++++++++++++++++++#####+++#-                 
              .-********++***++++++*****+++++++++++++###+++++#-                 
             .-*--***++#++**++++++*******++++++++++++++++++++++,                
            .--,,,,*+####++++++++*******++++++++++++++++++++++++-               
            ,-,..,-+*#@#+*+++***++**+++###++++++++++++++++++++++*.              
           .,....-**+++****----*++##+-+#@@@#++************+++++++-              
           ......-------*-----*+*+##+-#@@##++*,..,..,,,,,,-*+++++*.             
          .,.....,-***--------**-*+++++++++*,.............,*+++++*.             
         .,,,,,,*######++--------********,,................-++++++,             
         .,,,,.,#@@@@@@@@+,.,,----,........................-++++++*.            
        .,,,,,.,#@@@@@@@#*,..,,---,........................-*++++++-            
        .,,,,,,*##@@@@#++-....,---,,,,............,,,,,,,,,,*+*++*+*.           
         ,,,,,,*++####+++-...--*--,,,,,,.....,,,,---------***++**++*,           
         ,,,,,,,+######++*----*------,,,,,,,,-------------*++++*+++*-.          
         .,,,,,,*+###@####++*++++++----------------------**++++++++**-.         
          .,,,,,--**++***+++*****------------------------*++++++++++*-,         
           ,,,,----------------------------------------**+++++++++++**-         
           .------------------------------------------***++++++++****--.        
           .-***--------------------------------------**++++++++*+**---,        
           ,--****------------------------------------**+++++++****----.        
          .---****+***-----------------****------------*++++++**-----**.        
          .----*****+++++****+***++++++***-------------*+++***------**+,        
          ,------******++++++++++++++****-------------****----------*++-        
          ,--------*****+++++++++*****------------------------------*++-        
         .-----------******+++++***---------------------------------*+**.       
         ,-------------*****++****--------------------------------***++*.       
        .---------------*********-------------------------------***++***.       
         .,--------------*******-------------------------------**++++*-.        
           .,------------*****-------------------------------***++**-.          
             ..,--------------------------------------------**+**-,.            
                ..,--------------------------------------------,.               
                    .,,----------------------------------,,..                   
                        ...,,,,,,,,-------------,,,,,,,..                       
                                 .................                              

Build

go get 
go build 

Test

go test ./...

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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