A simple python hack to print ascii images from image files. An example result can be seen here.
Clone the repository into the desired directory.
cd <dir>
git clone https://github.com/sidward/pic2ascii.py
cd pic2ascii.py
Optionally, add an alias so that you can call this function from anywhere.
echo 'alias pic2ascii.py="exec <dir>/pic2ascii.py"' >> ~/.bash_aliases
This requires numpy
and scipy
.
Assuming the bash alias has been added,
pic2ascii.py <path to picture>
Alternatively,
pic2ascii.py <path to picture> > out.txt
See example.sh
for a sample call.
This project is licensed under the MIT License - see the LICENSE file for details.