Skip to content

Latest commit

 

History

History
71 lines (61 loc) · 2.24 KB

README.md

File metadata and controls

71 lines (61 loc) · 2.24 KB

ascii-art-generator-python3

In this repository The 'main.py' file receives an image as input and process it to produce an ascii-text

Demo 1 (click)

Below is a demo in which the main.py file receives an image, OutputTextSize, outputTextfilePath as commandline argument which produces the ascii-art in output.txt as shown
Demo-image-1

Demo 2 (click)

just like demo 1 here the main.py file receives another image, outputTextSize, outputTextfilePath as commandline argument which produces the ascii-art in output.txt as shown
Demo-image-1

Requirements

Setup

  • Download the Project files
  • Extract the downloaded zip file
  • go to the extracted directory

How to use

After setup go to the base firectory of main.py

run that python file through terminal in that directory

 python main.py

To run a image file run you can run below command

 python main.py <relative/image/path> <output-TextSize> <relative/OutputText/filepath>

for example : python main.py "Imgs/anyaImage.png" 40 "output.txt"

After running the "main.py" you will get the output ascii-art at <relative/OutputText/filepath> or at "output.txt"

you may need to zom out the outputText file inorder to get the image

Note

  • You can run the "main.py" without passing any argument at runtime
  • just change the top contents inside "main.py" file and run it