/ImgToAscii

Turn .png and .jpg images into ascii art

Primary LanguageGo

ImgToAscii

Turn .png and .jpg images into ascii art

Usage

  • If you have Go installed you can run go run ImgToAscii from ImgToAscii.go's directory
  • If you don't have Go installed simply run the command ImgToAscii from the ImgToAscii.exe's directory

Examples The examples show the use of the ImgToAscii.exe. If you have Go installed you can also use go run ImgToAscii.go <arguments>

  • ImgToAscii will search for a file called "image.png" in the directory of ImgToAscii.exe and output into "image.txt"
  • ImgToAscii Example.png will search for a file called "Example.png" in the directory of ImgToAscii.exe and output into "Example.txt"
  • ImgToAscii Example.png 100 will do the same as above but sets a threshold so that the width of the outputted "Example.txt" is not higher than 100 characters. If the width of the original image is smaller then the threshold, then the height will be kept under it
  • ImgToAscii Example.png 100 100 will resize the outputted image's width and height to 100 characters