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.1.tar.gz (3.6 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.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: img2term-0.1.1.tar.gz
  • Upload date:
  • Size: 3.6 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.1.tar.gz
Algorithm Hash digest
SHA256 37b66dba135842bd1d75a008625393e0a3d4f5c7e011e5526913af5e48de327d
MD5 06ed3b04ebab3f4ca604ea715986a70e
BLAKE2b-256 5a6c02b22f47704a7937d21ce2ce807fe74b7a433ca992289d6fe8961c0ca2ad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: img2term-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cee440c41c1a9849e751cee40185b4be652dd1b8c39e8d29bbc7c65c8c8b2acc
MD5 268003f2358d520033a94e6511f81077
BLAKE2b-256 5c79e8da2962ce1226e995bdbdfc9b37da46b1fa1869869957ba8da59659f353

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