#image #convert #art #raster #bitmap #text #symbol

bin+lib symbolize

This crate allows you to convert raster images into their symbolic versions

8 releases

0.2.1 Jun 26, 2022
0.2.0 Jun 22, 2022
0.1.5 Jun 18, 2022

#831 in Images

MIT license

2MB
338 lines

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

Dependencies

~16–26MB
~196K SLoC