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
Metadata
Release files for wj-termimage 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wj_termimage-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for wj_termimage-1.0.0-py3-none-any.whl |
Release files / wj_termimage-1.0.0-py3-none-any.whl
| Download URL | wj_termimage-1.0.0-py3-none-any.whl |
|---|---|
| Size | 26.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
45192027e2869f1be64ab5b35681463e4215b10c762a1126a44bf903ba9f0f93
|
|
BLAKE2b-256 checksum How to use checksums |
a71dab55270c09b22580e14ca0c6a04678c0aa7756c309f9cdd05fd3d30aa302
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Security for wj-termimage 1.0.0
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.