Skip to content

img2a is a utility that converts images into ASCII art, written in Rust programming language

License

Notifications You must be signed in to change notification settings

Vitalii-code/img2a-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

img2a-rs

Image to ASCII convertor

My first project written in rust

Usage: img2a [option] [images...]

Options:
  -h, --help
          Print help information

  --colour, --color
          By default the output will be colourless, use this flag to add colour

Examples

                                              =@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                                              =@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                                              =@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                                          .+  =@##@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                            .              +- =@+#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                                           :# =@=%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                           .                % =#=@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                           .                *-=#=@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                           .                =*=++@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                                            :%==+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                          .                 .@-=*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                          .                  @+-*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                          .                  %#:#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                          ==-..  ..         .:-+*#########******=-=@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                          @@#                 :@@@@@@@@@@@@@@@@@  -@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                          #@%                .-%@@@@@@@@@@@@@@@%  +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                          -@@:               -=*@@@@@@@@@@@@@@@+ .%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                           #@*              = =%%@@@@@@@@@@@@@%. #@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                            #@-            -. =@%%@@@@@@@@@@@@-.#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                             =%-         .-   =@@@%%@@@@@@@@@--%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                               -.      .:.    =@@@@%+==+*++==#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                                 .=. .        +@@@@@@@#=+-=%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                                  .= .        +@@@@@@@@*%:@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                                   +          +@@@@@@@@%@=@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                                   +          +@@@@@@@@%@+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                                   =          +@@@@@@@@%@+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                                   =          +@@@@@@@@%@+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                                   =          +@@@@@@@@@%+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                                   =          +@@@@@@@@@%+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                                   =          +@@@@@@@@@%+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                                   =          +@@@@@@@@@%+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                                   =          +@@@@@@@@@%+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                                   =          +@@@@@@@@@%+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                                   =          +@@@@@@@@@%+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                                   =          +@@@@@@@@@#=@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                                   =          +@@@@@@@@@#=@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                                   =          +@@@@@@@@@%=@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                                   =          +@@@@@@@@%*-@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                                   -          +@@@@@@@@#+:@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                                   : .        +@@@@@@@@+=:#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                                  .. .        +@@@@@@@%--:-%%%%%%#####################**********
                                 .-   -       =#******+*##=+******##*************###############
                               .===- .=#=.   .*@%%@#+++#%*++*%%%%%%%%%%%%%%%%%%%%%%%%%%#%##%%%%#
                              .-*=== . .:: .:-*#=###%%%%%#***+++==#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
                            .--==+-.       ..-*%+++++*+*#*+--==++*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
                                 .::  .    ..-*%@%%@%%%#***#%%%%%%%%%%%%%%%%%%%%%%#%%%%%%%%%%%%%
                                 .:.  .    .:=*#%%%%@%%##**%%%%%%%%%%%#%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%@@@%@@@%%%%%%%@%@@@%@@@%@@@
%%%@%@@@%@##*::::::**#%@%@@@%@@@
%%%@%@@@==...::::::...=+%@@@%@@@
%@@@%@@@##.##.:-::.##.*%%@@@%@@@
%@@@%%%%.::%%%*..=%@%::.%%%@%@@@
%@@%*::::--%%.:-::.%%---:::**@@@
%@@+.::::::++::::::++:::::::.@@@
%@@+.---##::.:::.:::.:*%:--:.@@@
%@@@%--:%#::::::::::::*%:--%%@@@
%@@@%@%+==.::---:---:.=+=#@@%@@@
%@@@%@@@==.==+++=+++=.-+%@@@%@@@
%@@@%===...=+++++++++...-==%%@@@
%@@+.........++++++-.........@@@
%@@#=========@@@%@@#=========@@@
%@@@%@@@%@@@%@@@%@@@%@@@%@@@%@@@
%@@@%@@@%@@@%@@@%@@@%@@@%@@@%@@@

Todo

  • Revork argument parsing with "clap" crate
  • Add the ability to copy output straight to the clipboard
  • Add the ability to set your own palette

About

img2a is a utility that converts images into ASCII art, written in Rust programming language

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages