Skip to content

This Repository have the main.py file that receives an image as input and process it to produce an ascii-art

Notifications You must be signed in to change notification settings

Synchrotek/Ascii-art-generator-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 

Repository files navigation

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


About

This Repository have the main.py file that receives an image as input and process it to produce an ascii-art

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages