Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

img2ansi

Description

Just a simple img to ansi converter. It can be used to create such console "graphics" like this one that I have used in bsdinfo.

Requirements

I'm not sure which versions are actually required, but for sure you need to have these packages:

  • Python 2
  • Python module: Image

Usage

syntax: img2ansi.py    []
 
options can be one of the following:
 
ansichar=...    - the character used as the foreground of the output.
                  ignored when ascii is set to true (default: 0)
ansipalette=... - the palette of ascii characters that will be used
                  if ansichar=random.
ascii=...       - if set to true, the luminosity will be represented by
                  a ascii character with a similar 'optical weight'.
bgcolor=...     - HEX representation of a color (without the leading '#'
                  that will be transparent in the output (replaced by a
                  a whitespace.
echo=...        - if set to true, the output will converted to a string
                  which can be copied into other print/echo commands.
randomansi=...  - will use a random character from ansipalette, instead
                  of the ansichar value
revert=...      - if set to true, the greyscale charset collection will
                  be reverted (might look better on brighter images.
 

About

Python jpg to ansii converter

Resources

Stars

12 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages