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 *i use this to make ascii drawings on my page lol

installation

WORKS IN WSL2 and DEBIAN/UBUNTU *NIX

using pip

pip install ascii-img-stuff

# the python binary is installed to $HOME/.local/bin/ascii
# run the ascii command and fill in the details it asks for
ascii

using git

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

# installs python program to ~/.local/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.7.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

ascii_img_stuff-0.1.7-py3-none-any.whl (4.7 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