Skip to content
/ symbolize Public

convert raster images to their text art representations

Notifications You must be signed in to change notification settings

rzru/symbolize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

symbolize!

This crate allows you to convert bitmap images into l33t text art! Also available as binary.

Preview

Preview

Usage as a crate

All needed information is available on docs.rs

Usage as binary

> cargo install symbolize

> symbolize --help
symbolize! 0.2.0
rzru <rzzzzru@gmail.com>
converts bitmap images into text art

USAGE:
    symbolize [OPTIONS] --palette <PALETTE> <PATH>

ARGS:
    <PATH>    Path to the original picture

OPTIONS:
    -c, --colorize             Flag that shows should output be colorized for a terminal or not. Not
                               recommended to use it with anything but terminals with rgb support
    -f, --filter <FILTER>      Filter type. One of: nearest, triangle, catmull_rom, gaussian,
                               lanczos3. More about differences:
                               https://docs.rs/image/latest/image/imageops/enum.FilterType.html
                               [default: nearest]
    -h, --help                 Print help information
    -p, --palette <PALETTE>    Defines symbols that will be used to fill the picture (in priority
                               order)
        --scale <SCALE>        Defines scale of symbolized picture relatively to the original
                               [default: 1]
    -V, --version              Print version information
    
> symbolize rustacean-flat-happy.png --palette=" @#$" --scale=0.05 

                               @@  @@@@  @@                              
                           @@  @@@@@@@@@@@@@@@@@@                        
                     @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@                    
                     @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@            @@      
   @@  @@          @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@      @@@@      
   @@  @@@@        @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@      @@@@  @@@@
 @@@@  @@@@    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@  @@@@@@@@  
   @@@@@@@@    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@    @@@@@@@@  
     @@@@@@  @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@    
       @@@@  @@@@@@@@@@@@@@@@@@&&    @@@@&&&&  @@@@@@@@@@@@@@  @@        
         @@@@@@@@@@@@@@@@@@@@@@&&    @@@@      @@@@@@@@@@@@@@@@@@        
           @@@@@@@@@@@@@@@@@@@@      @@@@      @@@@@@@@@@@@@@@@@@        
         @@@@@@##@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@####@@@@@@      
           @@@@##  ####@@@@@@@@@@@@@@    @@@@@@@@@@####    ##@@@@        
             @@  ##        ######################        ##  @@          
               @@                                            @@          
                                                           @@  

License

MIT

Releases

No releases published

Packages

No packages published

Languages