image-to-ascii is a fully open-source project which converts an image into an ascii art image.
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 !
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]
..............................................................................................
..............................................................................................
..............................................................................................
..............................................................................................
..............................................................................................
.........................,,,:::::::::::::::::::::::;:::::::::::::::,,.........................
.....................,;*???????????????????%%%%%%%%%%%%%%%%%%%%%%%%%??*;......................
....................,*???????????????????????????????????????????%%%%%%%?,....................
....................*????????????????????????????????????????????%%%%%%%%*....................
...................,?????????????????????*??%%???????????????????%%%%%%%%?,...................
...................:?????????????????????,.,;+*??%%%????????????%%%%%%%%%%:...................
...................;?????????????????????,.....,:;+**??????????%%%%%%%%%%%;...................
...................;?????????????????????,..........,:;*??????%%%%%%%%%%%%;...................
...................;?????????????????????,......,:;+*????????%%%%%%%%%%%%%;...................
...................:%????????????????????,.,:;+*?%%%%%?????%%%%%%%%%%%%%%%:...................
...................,?????????????????????*??%%%%?????????%%%%%%%%%%%%%%%%?,...................
....................*%???????????????????%%????????????%%%%%%%%%%%%%%%%%%*....................
....................:?%%?????????????????????????????%%%%%%%%%%%%%%%%%%%?,....................
.....................,;*???%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%?*;,.....................
.........................,,:::::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::::,,........................
..............................................................................................
..............................................................................................
..............................................................................................
..............................................................................................
..............................................................................................