Skip to main content

Display images in the terminal using ANSI colors

Project description

terminal-image

Display images in your terminal using ANSI true color escape codes.

Features

  • Display PNG/JPG images in the terminal
  • ANSI 24-bit true color support (works in most modern terminals)
  • Automatically fits image to terminal size
  • Simple CLI usage

Installation

Install using pip:

pip install terminal-image

Or install locally from source:

git clone https://github.com/Soundhearddev/terminal-image.git
cd terminal-image
pip install -e .

Usage

Display an image in the terminal:

timage path/to/image.png

You can also add an optional delay (in seconds) before the program starts:

timage path/to/image.png 5

preview

Original image Terminal output
Original Preview

Requirements

  • Python 3.7+
  • A terminal that supports ANSI true color
  • opencv-python

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

terminal_image-0.1.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

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

terminal_image-0.1.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file terminal_image-0.1.0.tar.gz.

File metadata

  • Download URL: terminal_image-0.1.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for terminal_image-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4785f62cb10cf21cf4751220bb2138dd5404180a7bf1c94410ef5204c9c8f35c
MD5 656801c362f6d4190b07657dcdb93ff8
BLAKE2b-256 db40a1c4febb0e8748cb6c39bde03111af8d1a62feb38c9f97ca86d6d3d62790

See more details on using hashes here.

File details

Details for the file terminal_image-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: terminal_image-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for terminal_image-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7a7bdfcb32ff22ec64c63fcbf6bc827ffbda59faa21a147cfec239640d191b1e
MD5 23c11551d2598beefe5851a239af154c
BLAKE2b-256 247a9081ef3f6437bb5790fae96bb46e0251d710f0d356fd41d9554696909eb1

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