Skip to content

skarasov/pic2ascii

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

PIC2ASCII

Python script to convert pictures to colored ascii!

Required - pillow lib and terminal with support of ANSI escape sequences (e.g. WindowsTerminal or Kitty)!

> python .\main.py -h

usage: main.py [-h] [-w W] [-e E] [-t T] [-d D] [-l] [-s] filename

PIC2ASCII

positional arguments:
  filename    picture filename

options:
  -h, --help  show this help message and exit
  -w W        width in chars to fit picture, default = 60
  -e E        height in chars to fit picture, default = 30
  -t T        edge threshold, default = 1.5
  -d D        dim color, default = 1.0
  -l          use lightness instead of value to select char
  -s          output as separate arrays color[r,g,b] and char

About

python script to convert pics to ascii

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages