Skip to main content

Display an image in your terminal

Project description

img2term

A simple Python program that displays images in your terminal. Peacock

Requirements

  • Python 3.13 or higher (older versions down to 3.8 might still work)
  • A terminal with 24-bit true color support. Some examples include:
  • OPTIONAL: The images may render more smoothly if the terminal supports GPU acceleration.

Getting Started

  1. Clone this repository and cd into it.
  2. Install the Pillow image processing library.
  3. To display a single image (i.e. peacock.png), you can run the program like so:
python img2term.py peacock.png

Options

The program will try to resize the image to fit within the terminal window. If you want the image to display in a smaller size, you can do so by setting --max_width and --max_height, which constrain the size of the image in terms of rows/columns.

For example, if you want the image to take up no more than 24 rows:

python img2term.py peacock.png --max_height 24

Supported File Formats

Any format that the Pillow library supports, including common formats like JPEG, PNG, and WEBP should work. You can check out supported image formats here.

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

img2term-0.1.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

img2term-0.1.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: img2term-0.1.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for img2term-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0b36f37a4e092614edc76076060dc5afef98b70b5a6cefa45a775c0b1dda2a6d
MD5 7caa89f3e834ab1ae8a08bfe0f09691b
BLAKE2b-256 14040a1feee598618a028a45d10044d407658b1079d0462e958f07378ca7cdad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: img2term-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for img2term-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 614ce9e3f91242a57ba06729ef323182c67f0a3f29864f8241ebab72e22fc5df
MD5 32fcebb81479a84b0f9177d5be9b5e5f
BLAKE2b-256 81f8d90a8d447eda1f5a8502120fd4154120ab6ea67e7c7003bc7c07fa06b49e

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