Display images in the terminal using ANSI colour and Unicode half-block graphics
Project description
wj-termimage
Display images in the terminal using ANSI 24-bit colour and Unicode half-block graphics.
Features
- Pure Python 3.14+ — no external dependencies
- Built-in image decoding (JPEG baseline + progressive, PNG, BMP)
- Three colour modes: 24-bit true colour, 256-colour, and 8-colour basic ANSI
- Area-averaged downscaling for smooth output (nearest-neighbour optional)
- Preserves aspect ratio, fits to terminal size by default
- Optional
--full-widthmode for scrollable output
Installation
pip install wj-termimage
Usage
# Display an image (fits to terminal)
wj-termimage photo.jpg
# Display at full terminal width (may scroll)
wj-termimage --full-width photo.jpg
# Use nearest-neighbour scaling (faster, pixelated)
wj-termimage --nearest photo.png
# Use 256-colour or 8-colour mode for limited terminals
wj-termimage --colour 256 photo.jpg
wj-termimage --colour 8 photo.jpg
# Save ANSI output to a file
wj-termimage --output render.txt --width 120 photo.bmp
Licence
MIT — Copyright (c) 2026 WaterJuice
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wj_termimage-1.0.0-py3-none-any.whl.
File metadata
- Download URL: wj_termimage-1.0.0-py3-none-any.whl
- Upload date:
- Size: 26.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45192027e2869f1be64ab5b35681463e4215b10c762a1126a44bf903ba9f0f93
|
|
| MD5 |
cc78f99cb83a0726e0b38ca92923b2f9
|
|
| BLAKE2b-256 |
a71dab55270c09b22580e14ca0c6a04678c0aa7756c309f9cdd05fd3d30aa302
|