Giter Club home page Giter Club logo

iv's Introduction

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. iv will ask for confirmation if the image it's about to display is taller than 500 console lines.

iv's People

Contributors

russss avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.