PixASCII
PixASCII is a Python-based tool that converts images into ASCII art. It works universally on Linux, macOS, and Windows as long as Python 3 and Pillow are installed.
Features
- Convert images to ASCII art
- Resize images for better ASCII output
- Save ASCII art to a text file or print to terminal
- Cross-platform: Linux, macOS, Windows
Requirements
- Python 3.7 or higher
- Pillow library
Install Pillow if you don’t have it:
pip install Pillow
Installation (Universal Method)
Clone or download this repository.
git clone https://github.com/hent83722/pixascii
Make the Python script executable:
chmod +x pixascii.py
(Optional) Make it a global command on Linux/macOS:
mkdir -p ~/.local/bin
cp pixascii.py ~/.local/bin/pixascii
chmod +x ~/.local/bin/pixascii
Make sure ~/.local/bin is in your PATH:
echo 'export PATH=$HOME/.local/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
Now you can run pixascii from anywhere.
Using the provided install script (Linux/macOS)
chmod +x install.sh
./install.sh
This will:
Copy pixascii.py to ~/.local/bin/pixascii
Make it executable
Ensure ~/.local/bin is in your PATH
Usage
Basic usage:
pixascii <image_path> [-w WIDTH] [-o OUTPUT_FILE]
Options
<image_path>: Path to the input image (required)
-w WIDTH: Width of the ASCII output (default: 100)
-o OUTPUT_FILE: File to save the ASCII art (optional, prints to terminal if not provided)
Examples
Print ASCII art to terminal:
pixascii /home/user/Pictures/photo.png -w 120
Save ASCII art to a file:
pixascii /home/user/Pictures/photo.png -w 120 -o ascii_output.txt
Notes
Adjust WIDTH to fit your terminal or desired output size.
If the output looks stretched, try changing the width or modifying the ASCII_CHARS in the script.
On Linux, make sure you refresh your shell if you previously installed an older version:
hash -r
License
This project is open-source and free to use. See the LICENSE file for details.
Metadata
Release files for pixascii 0.1.3
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 |
|---|---|---|---|---|
| pixascii-0.1.3.tar.gz | 3.6 kB | Without provenance | Details for pixascii-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pixascii-0.1.3-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for pixascii-0.1.3-py2.py3-none-any.whl |
Total release size: 8.1 kB
Release files / pixascii-0.1.3.tar.gz
| Download URL | pixascii-0.1.3.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b84ebdf210d67bd3b73081f6aa8fd084a336b193777cb60a56a985e71f839cfb
|
|
BLAKE2b-256 checksum How to use checksums |
7162d66ba8fba3867df85ac0a5d36151f478e300fb324f753506999eead37e7a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.5
|
Release files / pixascii-0.1.3-py2.py3-none-any.whl
| Download URL | pixascii-0.1.3-py2.py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
f56aa4d86b888d5f3def1f2f7a0e78de9911128267fa301eceef6d80d01a244d
|
|
BLAKE2b-256 checksum How to use checksums |
34ed9374cfb94f61a9a75f273390ea5ec59da38ed5f9379c530a162257bbeb40
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.5
|
Security for pixascii 0.1.3
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.