Skip to main content

Flexible terminal image viewer for iTerm2

Project description

iv: Terminal Image Viewer for iTerm2

PyPI version

iv is a utility for viewing images in the terminal using iTerm2's image display capability. It's useful for dealing with images on a remote server, for example with large image processing tasks.

When displaying single images, iv will resize them to speed up transfer over an SSH connection:

iv displaying a single image

When displaying multiple images, iv will produce a "contact sheet" of images with filenames. These images are decoded and resized in parallel:

iv displaying multiple images

Installation

iv can be installed using pip:

$ pip3 install iv

If iv can't find any suitable TrueType fonts on your system it'll use an ugly default bitmap font. To get some nicer fonts on Linux, install the Open Sans or msttcorefonts collections (fonts-open-sans or ttf-mscorefonts-installer packages on Debian-like distributions).

Usage

Usage: iv [OPTIONS] FILENAME...

  Display images within an iTerm2 terminal.

  iv will resize images to reduce the time taken to display them over SSH
  connections, and it will combine multiple images into a single image, with
  filenames.

  Usage:

    iv ./file.jpg # Display a single file, resizing as appropriate.
    iv *.jpg      # Display a number of files combined into a single image, with filenames.

  The IV_SIZE environment variable can be used to set the output image size
  instead of the -s/--size option.

Options:
  --version           Show the version and exit.
  -s, --size INTEGER  Maximum output image width in pixels.
  --help              Show this message and exit.

Limitations

iTerm2 may refuse to display extremely large images, and replace them with a retro "broken image" icon. You can always right-click and "Open image" to view the image with an external viewer.

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

iv-1.0.5.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

iv-1.0.5-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file iv-1.0.5.tar.gz.

File metadata

  • Download URL: iv-1.0.5.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for iv-1.0.5.tar.gz
Algorithm Hash digest
SHA256 f9946a4bca502552839d296f589d911f7c214bf7453ec08022588cf9b48da37d
MD5 0460fee0bc9655d04577624b448df88d
BLAKE2b-256 8c77d9f954c43efd6480d2330bb35c2aa4dae671b9c5b16137cf77ca41e02112

See more details on using hashes here.

File details

Details for the file iv-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: iv-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for iv-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ad7c5b42e63a269bd2e778d7e3111f19e15903b20bc3fb6c3b4f67b661745ca5
MD5 d34a4b8b5f7415e2c79a66020d353edf
BLAKE2b-256 f83ad9de2223b25f4b3a5086e5ac40aa4ccd167878fb738d01ef310e15e39e6c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page