Simple command line image viewer

org.jmonde.slideshow

Description

org.jmonde.slideshow displays a sequence of images, one after another.

java -jar <path>/org.jmonde.slideshow-1.0.jar [Options] [Files]

Options

-geometry WxH
   Window size: W=width, in pixels; H=height, in pixels.
   Default: full screen
   Images larger than the geometry are scaled down to fit within the
   geometry.

-l
   Loop forever.
   Default: display each image once and quit.

-r
   Display the images in random order.
   Default: display the images in the order listed.

-t displayTime
   displayTime = number of milliseconds to display each image
   Default: 2345 milliseconds

Files

The files to be displayed can be listed on the command line. If no files are listed on the command line then the file names are read from standard input.

If a directory is listed then the contents are recursively searched for image files.

javax.imageio.ImageIO is used to read the image files. Files not recognized by javax.imageio.ImageIO are ignored.

Controls

Esc             quit
q               quit
space           pause/play
up arrow        faster
down arrow      slower
left arrow      back
right arrow     forward
=               zoom in
-               zoom out
mouse drag      pan
mouse wheel     zoom in/out

Try it out

The source is available under the GNU General Public License.
Download

% jar xf org.jmonde.slideshow-1.0.jar
% cd org.jmonde.slideshow-1.0
% ant -q

BUILD SUCCESSFUL
Total time: 13 seconds
% java -jar build/org.jmonde.slideshow-1.0.jar ~/Pictures/*.jpg
% 

Enjoy!