Skip to content

A simple fun .py script to convert .jpeg/.png images into ASCII embedded art as a .txt file, using Python's pywhatkit library.

Notifications You must be signed in to change notification settings

kxnyshk/ascii-art.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ascii-art.py

A simple fun .py script to convert .jpeg/.png images into ASCII embedded art as a .txt file, using Python's pywhatkit library.

Fetching the repo

  • Download the .zip from here
  • Unzip/extract the directory
  • Open the extracted directory in VsCode or any other IDE of your choice.

How to execute

  • Head to the ./src/ dir and put your desired image (.jpeg/.png) that you wanna generate ASCII art of
  • Make sure the directory is empty before adding your own image, in case not, empty the dir
  • Open the app.py file and execute it on the IDE terminal.
  • Your desired ASCII art of the source image will be generated in the ./art/ dir

Requirements

  • Make sure you have pywhatkit Python Library installed, if not, then (in your terminal) do
  • pip install pywhatkit
  • Make sure ./src/ directory is empty before you execute app.py

Misc.

  • A source image and it's generated ASCII art has already been provided in the ./src/ & ./art/ dir respectively

Further readings

About

A simple fun .py script to convert .jpeg/.png images into ASCII embedded art as a .txt file, using Python's pywhatkit library.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages