Skip to main content

python3 cli tool to render *.jpg *.jpeg *.png etc imgs as ascii .txt files

Project description

about

ascii .txt image rendering with python
this is the program i use to make all the ascii drawings you see on my page

usage

WORKS IN WSL2 and DEBIAN/UBUNTU *NIX

git clone "https://github.com/hashirkz/ascii_stuff"
cd ascii_stuff
./setup.sh

# installs python program to /usr/bin/ascii
ascii

example

sleepyzzz:/mnt/c/users/hashi/documents/ascii_stuff$ ascii
path to img: ./imgs/pfp.jpg
height for .txt file: 40
invert y/n: n
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::.::::::::::::::::::::::::::::
:::::::::::::::::::::::::::::::::::::-:::::::::::::::::::::::::::::::..:::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::--:::..................:.::::::::..::........:::::::::::::::::::
::::::::::::::::::::::::::::::::::::............::::::::.............................:::::::::::::::
:::::::::::::::::::::::::::..:...:...::::.....:..:::::::::...................:::::......::::::::::::
:::::::::::::::::::::::::..::...::..::::::::...::::::::::.......::..........:::::::::...::::-:::::::
::::::::::::::::::::::....:::..::..:::::::::::::...::.:.........::::...... .:::::::::::...::::::::::
:::::---::----:::::......::::..::..:::::::::::::....:..............:::......::::::::::---:.:::::::::
::::----------:...::....::::..::::::::::::::::::.....::............:::...::::--:---=------....::::::
::::::------::..::-:...:::::..:::::::::::::::.::......::.::...::.::::::....::::.:--=-==--:..:..:::::
:::::::::::.....:::..:---:::..:::::::::::::::.::..:....:..:...:::::..::....:.....:::---:::...:.:::::
:::::::..............::-::::.::::::::::::::.......::..............   .::..:..:. .....::::::....:::::
:::........::..............:..::::::::::::......::::........          .:..:..:..........:::.........
:::::...::::::............:::..:..:::::::..:...:::::...                ..:................:::-:.....
::::..::::::::::::.......::::.....:::::::.:..:::..                       ..................:::::...:
:...:::::::::::.:::....:::::......::::::....                    ..        .::.................:::...
..:::::::::::----::..:.:::..............                       ...         ....:.........:...:::::..
::::::::-------==:::::.:::.......                              ..      ........:....................
::::::.:---------:::::::....                      .              .......::.....:....................
::......::::-::::::.....                                    ..:..:::....::.....:....:::.....::......
...::::::::....::..                      .            ...::.:::.::.....:::..:... .:..:::........::::
:::::::::......:::.       ..          .  ..      ...::::::::::..:......:::::......:..:::..:::::::...
:..........::..:::....    ..                ...:::::.......::...:::....:...  ......:.....:::::::::::
::........::..::...::.     ..          ....:::::...      .....::::..::.. ..   ...........:..........
::.....:::::.:::..:::.            ....::::::::::...   .......::::..:::.  ....   .......:::::::::::..
....::::::----::.::::...      .....:::::::::::::.............::::::::.    ..:.........::::::::::::::
:::::::::::::...::::...............:::::::::::::::........::::::::::...  ....::::.............::::::
:::::::... .....:........    .......::::::::::::::::...:::::::::::...::.  .....::::::::.............
.....:......::.::..:...   .. ........::::::::::::::::.:::::::::....:::::.  .................::::::::
::::.....:::::.....:.........::.............:::::::::::::::::....::::::::...................::::::::
:.....::::::::...............:::.....::...   ....    ..  ......::::::::::::.....::.........:::::::::
...::::::::::::..............:......:::....:::::::..     ..:::..:::::::::::::::.........::::::::::::
.:::::........::...::..............::...::::::::::::::.....::::.....:::::....:::::::::::::::::::::::
:::....::::::::..................:.....:::::::::::::::::::::::::::::::.....::::::::::::.............
.....:::::..........::................::::::::::::::::::::::::::::::::::::::::::::::.....  .. ...
. .:::::.....:::::::........::...... .::::::::::::::::::::::::::::::::::::::::::::...  .....  ....
...:::.....::::::::...::::::::...... .::::::::::::::::::::::::::::::::::::::::::..............     .
:.:::....::::::::.:::::::::::....:::..::::::::::::::::::::::.::::::::::::::::::.::::::::::.......  .
:.:::.. :::::::.:::::::::::....::::::..:::::::::::::::::::::..:::::---::----::.::.::::::::::::. ..

saved to: pfp.txt

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ascii_img_stuff-0.1.3.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

ascii_img_stuff-0.1.3-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page