Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/myint/image-view

Displays images (PNM, PNG, JPEG, etc.) conveniently from the terminal
https://github.com/myint/image-view

Last synced: about 2 months ago
JSON representation

Displays images (PNM, PNG, JPEG, etc.) conveniently from the terminal

Awesome Lists containing this project

README

        

==========
image-view
==========

.. image:: https://travis-ci.org/myint/image-view.png?branch=master
:target: https://travis-ci.org/myint/image-view
:alt: Build status

``image-view`` displays images (PNM, PNG, JPEG, etc.) using ``pygame``.

The primary motivation is to support viewing PNM images on OS X. Particularly,
it is useful if there are a series of images captured from a camera
(``captured-00*.pgm``), and you want to display a subset of them.

Installation
============

First install the ``pygame`` dependency somehow. One option is to use this
fork, which avoids X11 on OS X::

$ pip install --upgrade git+https://github.com/myint/pygame

Then install the actual program::

$ pip install --upgrade image-view

Usage
=====

Typical usage::

$ image-view captured-070*.pgm

1. Use the left and right arrow keys to navigate through images.
2. Use ``+``/``-`` keys to scale the image. Press ``0`` to reset.

Options::

usage: image-view [-h] [--colorize] [--little-endian] [--version]
files [files ...]

positional arguments:
files paths to images

optional arguments:
-h, --help show this help message and exit
--colorize color 16-bit PGM images with a rainbow gradient
--little-endian interpret 16-bit PGM images as little endian; this is the
opposite of Netpbm (and ImageMagick)
--version show program's version number and exit

Example screenshot
==================

.. image:: https://raw.githubusercontent.com/myint/image-view/master/screenshot.png
:alt: screenshot
:align: center