Skip to content

Atgoogat/img2ascii

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 ./...

About

Simple Img to ASCII-Converter written in Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages