Skip to content

Image processing to ascii characters written in Rust as a CLI.

Notifications You must be signed in to change notification settings

Riceman2000/img2ascii

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

img2ascii

Image processing to ascii art made as one of my first Rust projects. Any image that that the Image Crate can parse for RGB data can be made into ASCII art. There is support for image scaling by defining what percent of the pixels are converted to ASCII characters.




                                         .>:     `nU<     '<"
                                   .    .L$@U;  Ik$$B). '|#$&I
                                 xBaxl  /$$$$Bcj&$$$$$Ufa$$$$d' `1ZBh`
                                .M$$$$dLB$$$$$$$$$$$$$$$$$$$$$dQ%$$$$}
                         `*Bpc}:1$$$$$$$$$$$$$$$Bc}[n8$$$$$$$$$$$$$$$O,+j0MB1
                         '$$$$$$$$$$$$$$$$$$$$$$n    ($$$$$$$$$$$$$$$$$$$$$$t
                   "[+;' .B$$$$$$$$$$$$$$WpCuL$$M(II}a$$dnYmo@$$$$$$$$$$$$$$(  ">[i
                   u$$$@##$$$$$$$$$$&Oj-,     i0$$$$$$w-     `>|Ua$$$$$$$$$$Ba%$$$&.
                   I@$$$$$$$$$$$$br>.           ~O&&Q~            :)Q%$$$$$$$$$$$$u
              .`'. .p$$$$$$$$$#xI                                    `1w$$$$$$$$$$i  .`'
             .h$$$@@$$$$$$$$d}.                                         !YB$$$$$$$@@$$$@-
              }$$$$$$$$$$$$O//////////////////////////////////(]!'        ;J$$$$$$$$$$$O'
               /$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$@bc-.      ~h$$$$$$$$d`
          !{/nXp$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$#f`     `Y$$$$$$$WUvf(-'
         .k$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$o>     .q$$$$$$$$$$$@_
          `Y$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$&I   .x$$$$$$$$$$$h>
           ./$$$$w)-)w$$Muuuu&$$$$$$$$$$$$$8CCCCCCCCCCCOo$$$$$$$$$$$$$$$$u   ($$af}\w$$$$b`
       .+/UbB$$$&.   .&$$f   h$$$$$$$$$$$$$h             IQ$$$$$$$$$$$$$$n  ?@$$"   .h$$$$#On},
       ]@$$$$$$$$U+I+U$$$o.  h$$$$$$$$$$$$$h              {$$$$$$$$$$$$$#:  w$$$C>"lr@$$$$$$$$Q
        IXB$$$$$$$$$$$#Qt,   h$$$$$$$$$$$$$*}}}}}}}}}}}(nm$$$$$$$$$$$$$Z;   :rZ&$$$$$$$$$$$$p[.
          :W$$$$$$8c{;       h$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$m?.       .!(U*$$$$$$$\
       `}J&$$$$$$$O          h$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$YI              [$$$$$$$@qtI
      !%$$$$$$$$$$C          h$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$O<             _$$$$$$$$$$$n
       <nh$$$$$$$$Z          h$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$n        `{{{u$$$$$$$$&C{`
          lW$$$$$$M.         h$$$$$$$$$$$$$a;;;;;;;;;<|Z$$$$$$$$$$$$$$$\       l$$$$$$$$$$$t'
        '(a$$$$$$$$~         h$$$$$$$$$$$$$h            [@$$$$$$$$$$$$$&`      {$$$$$$$$$$$%z;
       +#$$$$$$$$$$Q,,,,,,,,,a$$$$$$$$$$$$$h             c$$$$$$$$$$$$$$Q_^ `>r%$$$$$$$$$$$$$@v
       "tJk@$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$@&&&&&&&W:    I@$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$#Ou~
           'f$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$;    .0$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$d,
          .|%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$;     <$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$Q"
         .Q$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$;      (B$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$M>
          {vJOdW$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$;       !C%$$$$$$$$$$$$$$$$$$$$$$$@kwLzj"
               }$$$$$$$$$0iIIIIIIIIIIIIIIIIIIIIIIIII.         ';IIIIIIIIIIIIt8$$$$$$$$Z.
              >8$$$$$$$$$$M|]|nUZkqt.                             }0qQzf1++Z$$$$$$$$$$$u
             .*$$$$$$$$$$$$$$$BM@$$$[                            i$$$$B$$$$$$$$$$$$$$$$$?
              ;_+~>>b$$$$$$$@)' `/$$w.                           U$$z: `)%$$$$$$$$}><~+<.
                   "%$$$$$$$W^   ,B$$i                          "B$$l   .k$$$$$$$$/
                   r$$$$$$$$$MXxU&$$$ac1i'                   :?rq$$$&ztnk$$$$$$$$$#.
                   ixt}<,:B$$$$$$$$$$$$$$@omUut)}]?-?[1\xX0b8$$$$$$$$$$$$$$$f`!?|x)
                         '$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$/
                         ^@$%wu[u$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$b]/L#$$/
                          :i'   '8$$$$8o$$$$$$$$$$$$$$$$$$$$$$&*$$$$$(    ;i.
                                 J$@O{` z$$$$$qQ@$$$$$bL%$$$$#,.>cM$%"
                                 'i"    'd$$b?. -&$$$z' :Y@$@+    .i,
                                         ,|].    IZk)     l\~



About

Image processing to ascii characters written in Rust as a CLI.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages