sidward / pic2ascii.py

Convert pictures to ascii art.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pic2ascii.py

A simple python hack to print ascii images from image files. An example result can be seen here.

Getting started

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

Prerequisites

This requires numpy and scipy.

Usage

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.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Convert pictures to ascii art.

License:MIT License


Languages

Language:Python 56.4%Language:HTML 41.3%Language:Shell 2.3%