Skip to content

stekap000/image-to-ascii

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image-to-ascii

Program for generating ASCII art from images. Allows specification of output image dimensions (with aspect ratio preservation), image brightness inversion and gamma correction.

Compilation

Use compiler directly or use make.

Command line arguments:

  • -w - ASCII image width (default 80).
  • -h - ASCII image height (ignored if image aspect ratio is preserved) (default 40).
  • -inv - Invert image luma values (default false).
  • -gc - Gamma correction. (default 1.0)
  • -par - Preserve image aspect ratio (default false).
  • -car - Character aspect ratio (default 0.5).
  • -in - Input image file name (default input.png).
  • -out - Output text file name (default output.txt).
  • -v - Prints verbose information about parameters used. (default false)
  • -help - Prints help manual. (default false)

Examples:

Inversion (without gamma correction):

About

Generate ascii art from images.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors