Skip to main content

print an image in terminal

Project description

timg

Display an image in terminal.

Setup

timg is available as a package on PyPI:

$ pip install timg

Now you can use the timg command in your terminal.

Screenshots

Usage

    usage: timg [-h] [-V] [-i] [-m METHOD] [-r N] [-s W] [filename]

    print an image in terminal

    positional arguments:
      filename              filename of an image

    optional arguments:
      -h, --help            show this help message and exit
      -V, --version         print version and exit
      -i, --invert-background
                            invert grayscale in ASCII mode
      -m METHOD, --method METHOD
                            name of a rendering method (use `-m list` to list
                            available methods, the default is a24h)
      -r N, --reduce-colors N
                            reduce color palette of an input image (1-256)
      -s W, --size W        width of an image

zsh completions

Add this line to .zshrc

compdef _gnu_generic timg

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

timg-1.2.0.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

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

timg-1.2.0-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file timg-1.2.0.tar.gz.

File metadata

  • Download URL: timg-1.2.0.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for timg-1.2.0.tar.gz
Algorithm Hash digest
SHA256 c267db8a69c6419ce3021080c1dd43150cdd09ff55ee54c2b8c17ae5e0e477c1
MD5 70dbb8b1d395312ac45841eedc22b97f
BLAKE2b-256 34adfd2b637afaa56d87783a2fa1144bae66f60e285733952de5926a0497eb96

See more details on using hashes here.

File details

Details for the file timg-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: timg-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for timg-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b036a938b246c2fc4bcff255517030f39535139d2fa7b5a09b012bcfe08c6015
MD5 cdb79d46fe4013867e3a12bec95d1b25
BLAKE2b-256 cc3a7e16252adfcd7adc1481ea080964ada0f229072a09da56fcdc2c7bc89954

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