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.2.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.2-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: img2term-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 25542214f5fe2ee3ba5350a79d56cfbde05c5f27fc71e3a3122005df1757a055
MD5 8a771a3ba277f9e3957b654bc1397a46
BLAKE2b-256 e0d5fad5c63dc29840e038282957ed19debfbdd5f7cdab054995fd56df038c63

See more details on using hashes here.

File details

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

File metadata

  • Download URL: img2term-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6d0d85acb2e10a6c4c3aa2301e52ea8a968a5865df8bdb3aa8aa7c74926eef0b
MD5 69debc5fa3cb67cfe81f9936b1145edc
BLAKE2b-256 6dd5c286d293605eea5b940df16df337e4c0accb8cc8077d1721d428542dfbdf

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