/Image2ASCII

Simple script that convert image to ASCII

Primary LanguagePython

Image2ASCII

Simple script that convert image to ASCII

usage : image2ascii [args]

  • [-i ] : Specify file source from directory
  • [-u ] : Specify file source from url
  • [-o ] : Specify output absolut file path
  • [-c ] : Print result on console #Beware of image resolution use -r to rescale
  • [-x ] : Resize image width
  • [-y ] : Resize image heigth
  • [-r ] : Rescale image corresponding to apect ratio ( should almost being use for medium to large images )
  • [-a ] : Print information about author, date, dependency...
  • [-h ] : Print this help message

This script match a pixel for an ascii char. Thus most of the images will be very large. The use of the rescale option is recommended.

example : image2ascii.py -u https://avatars3.githubusercontent.com/u/6411530?v=2&s=460 -o output.txt -r 0.15