Coder Social home page Coder Social logo

img2unicode-demos's Introduction

img2unicode-demos

Demos of capabilities of the matrach/img2unicode - terminal rendering tool.

Note, that the images are optimized for Ubuntu Mono font rendered by libvte. Most of monospace fonts are not really properly sized, i.e. Braille glyphs width is about 1.5x the width of ASCII, and therefore GitHub's rendering is different from libvte (Gnome Terminal etc.), which forces the characters to be either single wide or double-wide (with some exceptions).

Consider the following 5 Braille glyphs and 5 ascii glyphs:

⣯⣯⣯⣯⣯
aaaaa

And compare the rendering to libvte's, where characters overlap: libvte rendering of glyphs

Samples

Compare the following works.

Limited to ASCII and B&W

(Optimized for Ubuntu Mono font, not GitHub's default.)

                                                                       _       
                                                                ____y@QF       
                                                           _y@@@@@@@@@@_       
                                                        _y@@@@@@@@@@@@@@@_     
                                                      _q@@@@@@@@@@@@@@@@@@     
                                                     j@@@@@@@@@@@@@@@@@@@@k    
                                                   _@@@@@@@@@@@@@@@@@@@@@@@k   
                                                 _y@@@@@@@@@@@@@B  ""M@@@@@@@_ 
         ____,ypq@@@@@@@@@@@@pp____       ____pq@@@@@@@@@@@@@@@@L      "@@@@@B 
      _@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@B         %@BF  
     @@@@@@F@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@L               
    j@@@@@Ej@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@F                
    @@@@@@L@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@                 
    @@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@B                 
   J@@@@@@ J@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@E                 
   J@@@@@@  @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@L                 
   J@@@@@@  J@@@@@@@@@@@@@P"M%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@                  
   J@@@@@@   3@@@@@@@@@@@"     "fM@@@@@@@@@@@@@@@@@@@@@@@@@P`                  
   J@@@@@@   j@@@@@@@@@@"           ``""""""""""ff@@@@@@@@F                    
   J@@@@@@  _@@@@@@@@@@F                          @@@@@@@@                     
   J@@@@@B _@@@@R"@@@@@                           @@@@@@@F                     
   J@@@@@L@@@@@"  @@@@F                           @@@@@@B                      
    @@@@B @@@B    9@@@                            @@@@@@`                      
     @@@L @@B      3@B                            @@@@@@                       
      P"  @@       J@B                           J@@Q@@F                       
          @B        @@                           j@F`@@                        
         j@[        ]@k                          @@L @E                        
         @@[        J@@L                         @@L @k                        
         B@@_        "N@@_                       @@[ @@                        
          3@@@_        N@@k                      "@@p/@@y_                     
           "PP"                                   """"JRRP                     

B&W Unicode

Rendered by libvte (Gnome Terminal etc.). Compare the rendered image (left) with original (right).

Libvte rendering Source image

Libvte rendering Source gif

24-bit color Unicode

The tool really shines when rendering with 24-bit colors, which is supported by most modern terminal emulators. Compare the rendered image of Gamma optimizer (top), Dual (block) optimizer (middle), with original (bottom).

Libvte rendering

Libvte rendering

Source image

You can also watch converted Big Buck Bunny (compare with the original movie):

Big Buck Bunny in ASCII 24bit

License

All content is based on either CC0, Public Domain or Pixabay work. The actual content in licensed under CC0 or Pixabay License, whichever has precedence.

img2unicode-demos's People

Contributors

matrach avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.