🎨 ASCII Art CLI
Convert images, videos, and GIFs to ASCII art directly in your terminal! Supports color, background effects, and video/GIF playback.
🚀 Features
✔️ Image to ASCII conversion (JPG, PNG, etc.)
✔️ Video to ASCII playback (MP4, AVI, etc.)
✔️ GIF to ASCII animation (Animated GIF support)
✔️ Color & background options (--color, --bg)
✔️ Interactive mode (-i) for easy use
✔️ Docker support (No dependencies needed)
📦 Installation
🔹 1. Install Locally with Python
Requires Python 3.7+
pip install -r requirements.txt
python ascii_art.py -i
🔹 2. Run with Docker (No Dependencies Needed)
docker build -t ascii-art-cli .
docker run --rm -it -v "$(pwd):/app" ascii-art-cli -i
🎥 Usage Examples
1️⃣ Convert an Image to ASCII
python ascii_art.py my_image.jpg --color
2️⃣ Play a Video as ASCII
python ascii_art.py my_video.mp4 --color --fps 15
3️⃣ Play an Animated GIF as ASCII
python ascii_art.py my_animation.gif --color
4️⃣ Interactive Mode (Step-by-Step Selection)
python ascii_art.py -i
🛠️ Advanced Options
| Option | Description | Default |
|---|---|---|
--width |
Output ASCII width | 100 |
--color |
Enable color output | False |
--bg |
Enable background color effects | False |
--fps |
Frame rate for videos | 30 |
--output |
Save ASCII output to a file | None |
Example: Save ASCII output to a file
python ascii_art.py my_image.jpg --output=ascii_output.txt
🐫 Running Inside Docker
No Python installation needed! Just use Docker:
1️⃣ Build the Docker image
docker build -t ascii-art-cli .
2️⃣ Run an image through Docker
docker run --rm -it -v "$(pwd):/app" ascii-art-cli samples/vegeta.jpeg --color
docker run --rm -it -v "$(pwd):/app" ascii-art-cli samples/sangoku.png --color
3️⃣ Play a video in ASCII through Docker
docker run --rm -it -v "$(pwd):/app" ascii-art-cli samples/countdown.mp4 --fps 60 --color
4️⃣ Play an animated GIF in ASCII through Docker
docker run --rm -it -v "$(pwd):/app" ascii-art-cli samples/fusion.gif --color
🤖 Contributing
Feel free to fork, create a PR, or submit an issue!
📝 License
MIT License
Metadata
Release files for artii 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| artii-1.0.1.tar.gz | 4.8 kB | Without provenance | Details for artii-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| artii-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for artii-1.0.1-py3-none-any.whl |
Total release size: 9.9 kB
Release files / artii-1.0.1.tar.gz
| Download URL | artii-1.0.1.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
72d4c9858d8081b7d80a4881f9f771f786f0914a1bfe7c50b7eab17ffb83908d
|
|
BLAKE2b-256 checksum How to use checksums |
154db465ac4c17d67de18d0d87aecf6f30948e35061ccc37b486ef3b7013cb4c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.7
|
Release files / artii-1.0.1-py3-none-any.whl
| Download URL | artii-1.0.1-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c1e7eba2104736535c3524b723c8701b7ab704a500ea428be9140705df75a2f3
|
|
BLAKE2b-256 checksum How to use checksums |
ddefe766db64d901a0987db6d68668233c70a52d33b157539760db9e5e267a45
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.7
|
Security for artii 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.