Skip to main content

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-width mode 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


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

If you're not sure about the file name format, learn more about wheel file names.

wj_termimage-1.0.0-py3-none-any.whl (26.2 kB view details)

Uploaded Python 3

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

Hashes for wj_termimage-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 45192027e2869f1be64ab5b35681463e4215b10c762a1126a44bf903ba9f0f93
MD5 cc78f99cb83a0726e0b38ca92923b2f9
BLAKE2b-256 a71dab55270c09b22580e14ca0c6a04678c0aa7756c309f9cdd05fd3d30aa302

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page