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.2.0.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

ascii_img_stuff-0.2.0-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file ascii_img_stuff-0.2.0.tar.gz.

File metadata

  • Download URL: ascii_img_stuff-0.2.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for ascii_img_stuff-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e3017a74d29579e3f92adb9423223d082b3143d94141a6dae735ae9a876a71a9
MD5 69d9295b51d0d5f60cc3d5e764be2186
BLAKE2b-256 932a117a9ca3f0b188b568f803b59f2c949fa804d6e5703a148c5849e498c79f

See more details on using hashes here.

File details

Details for the file ascii_img_stuff-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ascii_img_stuff-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0e69f10ccb703b9e3d9ec132bb582ef853abfcb08c5a4fae9cde6169dfabfc49
MD5 922b17a3bd3e383b12b7413391dd67d7
BLAKE2b-256 9350d9b5de31863b90c6b845bc9d6fe010dbe8c6bf79c408f975b2b583e3577a

See more details on using hashes here.

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