Skip to content

Arkeon34/image-to-ascii

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image-to-ascii

Project Description

image-to-ascii is a fully open-source project which converts an image into an ascii art image.

How to Install image-to-ascii ?

Here are few steps you have to complete to install and run image-to-ascii

Step 0 : Open your favorite terminal

Step 1 : Clone the repository

$ git clone https://github.com/Arkeon34/image-to-ascii

Step 2 : Create a python virtual environment

$ cd image-to-ascii
$ python -m venv venv-name

Step 3: Run the virtual environment

# Windows PowerShell
$ venv-name\Scripts\activate.ps1

# Linux terminal (bash)
$ source venv-name/bin/activate

Step 4: Install the dependencies

$ pip install -r requirements.txt

Now you are ready to go !

How to convert my image ?

The project is quite simple at the moment.
To convert your image into ascii art, you just need to put your image in the 'images' directory.
Then, in your terminal run this command :

$ python img2ascii.py -in [input_image_path] -out [output_text_file_path]

Final result!

..............................................................................................
..............................................................................................
..............................................................................................
..............................................................................................
..............................................................................................
.........................,,,:::::::::::::::::::::::;:::::::::::::::,,.........................
.....................,;*???????????????????%%%%%%%%%%%%%%%%%%%%%%%%%??*;......................
....................,*???????????????????????????????????????????%%%%%%%?,....................
....................*????????????????????????????????????????????%%%%%%%%*....................
...................,?????????????????????*??%%???????????????????%%%%%%%%?,...................
...................:?????????????????????,.,;+*??%%%????????????%%%%%%%%%%:...................
...................;?????????????????????,.....,:;+**??????????%%%%%%%%%%%;...................
...................;?????????????????????,..........,:;*??????%%%%%%%%%%%%;...................
...................;?????????????????????,......,:;+*????????%%%%%%%%%%%%%;...................
...................:%????????????????????,.,:;+*?%%%%%?????%%%%%%%%%%%%%%%:...................
...................,?????????????????????*??%%%%?????????%%%%%%%%%%%%%%%%?,...................
....................*%???????????????????%%????????????%%%%%%%%%%%%%%%%%%*....................
....................:?%%?????????????????????????????%%%%%%%%%%%%%%%%%%%?,....................
.....................,;*???%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%?*;,.....................
.........................,,:::::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::::,,........................
..............................................................................................
..............................................................................................
..............................................................................................
..............................................................................................
..............................................................................................

demo-image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages