Image viewer

What is this

This is a little brutally simple application that is used to view images. The image can be viewed either fullscreen or in a window. You can navigate back and forth among the images as well as rotate the image in 90 degree steps. All image formats that SDL_image can handle can be viewed.

Installation

You will need the development stuff for SDL, SDL_image and SDL_gfx in order to compile viewimage. Look at the supplied Makefile, do any changes and compile with:

 
  % make
  

Finally install the created viewimage binary somewhere.

Usage

Just give the names of the files you want to watch as arguments to viewimage. Examples:

 
  % viewimage foo.png
  % viewimage ~/pics/*.jpg ~/pics/*.png
  

To show the next image press space and to go back to the previous image press backspace. To quit press escape or q. To rotate an image use the arrow keys.

Configuration

viewimage understands no commandline arguments. Instead it uses a brutally simple configuration file ~/.viewimagerc. It can look like this:

  width 1600
  height 1200
  fullscreen 1
  antialias 0
  

The width and height are used if the application is run in a windowed mode, ie when fullscreen is 0. If it is set to 1 then viewimage is run fullscreen. If antialias is set to 1 then antialiasing is performed on images when they are rotated. Only these four lines are recognized. No empty lines, comments etc are allowed. Avoid extra spaces too. If the file doesn't exist then a window of size 1280x1024 is opened.

Download

Download viewimage-1.0.tar.gz.