# The Viewer

The reason for you to put all your images into &kphotoalbum;, and spending hours after hours describing them, is of course that you at some point want to look at them. For that purpose &kphotoalbum; has an viewer capable of showing your images and videos. You open the viewer from the thumbnail view as described in .

## Common Viewer Commands

The viewer supports both images and videos. The following commands are supported for both images and videos:

- Press Esc to close the viewer window.

- Press either Page Down or the Space bar to move to the next image or video, and press Page Up to move to the previous image or video.

- Press &Ctrl;1 to open the annotation dialog for the current image or video.

- Press &Ctrl;4 to set the image or video as the first in its stack (if it is already part of a stack).

- Press &Ctrl;d to edit the image description.

- Press either &Enter; or F11 to toggle full screen mode while viewing an image or video.

- Press Delete to remove the current image or video from the viewer list (as if you hadn't selected it for viewing) and advance to the next item in the viewer list. If the last image or video in the viewer list is removed, the viewer window is closed.

- Press &Ctrl;Delete to add the current image or video to the viewer's deletion list. When the viewer window is closed, &kphotoalbum; will open the Removing Items dialog if the deletion list is not empty.

## Viewing Images

See for viewer commands supported for both images and videos.

The viewer can be seen in . The viewer does of course show you the image, but in addition to that it also shows you the information you specified for each image, including who is in the image, where and when it was taken, &etc;

### The Viewer

### The Info Box

The viewer provides an info box which can be overlaid on top of the image. The info box is positioned at the bottom center in .

If the info box is located on top of part of the image you actually want to see, you can click the &LMB; on the info box and drag it elsewhere on the image. Press &Ctrl;i to toggle the info box on or off.

It is possible to configure what should be shown in the info box, and of course whether it should be shown at all. All these options are available by clicking the &RMB; on the viewer. The context menu can be seen in below.

#### The viewer's context menu

Some of the words in the info box are underlined. If you click the &LMB; on one of these words, the browser (see ) will go into the scope of that item. For example, in the demo if you click on `Anne Helene` in the info box, the browser will show you all images of Anne Helene, just as it would have done if you selected `People` from the root of the browser, and next selected `Anne Helene`.

In the top right-hand corner of the info box you can see a small Jump to Context button with the &kphotoalbum; logo. Clicking the &LMB; on this button will navigate to the . The thumbnail view will display all images, and the image you just had in the viewer will be selected. The idea behind this is the following: you browse to a given person, and look at the images of that person. One of the images is from say your high school time, and now you want to see images from that period of time. Using the Jump to Context button, you are brought to the thumbnail view showing all images, with the current one being in focus and likely all your high school pictures around it.

If the current image has geolocation coordinates, you will see a map button below the Jump to Context button in the info box. Clicking the &LMB; on this button will open a new window with a map showing where the photograph was taken.

The map button is only displayed if &kphotoalbum; was compiled with &marble; support.

### Viewing More Images

In case you have loaded several images into the viewer, in addition to moving forward and backward using Page Up and Page Down keys, respectively, you can go to the first and last images using Home and End. These functions are of course also available from the context menu.

Alternatively, you can display multiple images as a slide show. In slide show mode, &kphotoalbum; loads a new image into the viewer every few seconds. Press &Ctrl;r to toggle the slide show on or off. Press &Ctrl;+ to make the slide show go faster or &Ctrl;- to make it go slower.

### Zooming In and Out

Using the viewer, you may zoom in and out of your image by dragging out a rectangle with the &LMB;. Pressing the minus key will zoom out again. Pressing the plus key will zoom in at the center of the image. below shows how a zoom rectangle is marked, and shows the result of the zoom.

Press the period key to reset the zoom level so the image is shown at its normal size. Pressing the = key will set the zoom level so each pixel on the screen correspond to a pixel in the image.

#### Zooming in the viewer

#### Zooming in the viewer

### Rotating Images

Press the 7 key to rotate the image 90 degrees to the left. The 9 key rotates the image 90 degrees to the right. The 8 key rotates the image 180 degrees (&ie; flips it upside down).

Any change to an image's rotation in the viewer is persistent.

## Viewing Videos

See for viewer commands supported for both videos and images.

When a video is loaded into the viewer, the video starts playing automatically. Press the p key to pause the video, and press it again to resume video playback.

Press Home to restart the current video from the beginning, and End stops the current video and rewinds it to the beginning.

Some viewer features are not available when viewing a video:

- The info box can not be displayed on a video.

- Zooming operations other than toggling full-screen mode are not supported for videos.

- Rotation operations are not supported for videos.

- Slide show mode is not supported for videos.

Both tokens (see ) and tags (see ) can be toggled when a video is displayed in the viewer, but there is no immediate user feedback that anything has changed. You can set the viewer annotation mode to Locked to avoid accidentally toggling a token or tag.

As noted above, the p key is used to toggle pause so it is not possible to use this key to toggle a token or tag while viewing a video.

### Video Seeking

The viewer supports seeking within a video. The key bindings are listed in the .

#### Video Seek Controls

Seek Duration | Seek Backward | Seek Forward
--- | --- | ---
100 msec | &Shift;&Up; | &Shift;&Down;
1 sec | &Up; | &Down;
10 sec | &Left; | &Right;
1 minute | &Shift;&Left; | &Shift;&Right;
10 minutes | &Ctrl;&Left; | &Ctrl;&Right;

## Annotating images from the viewer

There are three modes to annotating images in the viewer:

- Locked - This is the default mode when starting the viewer - in here no annotating or tokenizing will happen. This ensure you do not accidentally annotate images when viewing them.

- Assign Tokens - This allows you to set tokens on images, by simply pressing a key from A-Z on the keyboard.

- Assign Tags - This allows you to assign macros to a keyboard key. As an example, L could mean set the item Las Vegas in the Location category. In addition to that, it also allows you to set any tag on an image.

The modes are selected from the context menu as can be seen in .

The two modes are described in details below.

### Selecting annotation mode from the viewer

## Setting Tokens from the Viewer

Imagine you want to sent a number of images to a printer to get them developed on paper. To see which you want, you start the viewer on the images, and tag them as good, bad, or maybe, while inspecting each one.

You may of course create a few new items (say Good, Bad, Maybe) for an existing category, say the category Album. However, given that you likely do not need these tags once you've send the images to the printer, there is an easier way, namely by simply setting tokens on the images. Tokens are named from A to Z, and you set a token simply by pressing its letter. In you may see an image where the tokens A, B and C are set.

### An Image with Tokens

For this to work, you need to be in the Assign Tokens mode. See

Once you've set tokens on your images, they will be available for regular browsing in the browser, as can be seen in . So when you've marked images that needs to be edited, printed, or whatever, simply browse to the images, and process the set from there, e.g. by using copy images to... from the context menu.

### Tokens seen in the Browser

Categories (and esp tokens) may be displayed in the thumbnail viewer. When Showing the categories in the thumbnail viewer, you may also add tokens to images, simply by pressing the letter for the token when the image is selected, this can be seen in

### Tokens seen in the Thumbnail Viewer

## Tagging images from the viewer

Tagging images can be tiresome, even in &kphotoalbum;, at least when you've fallen behind and have thousands or tens of thousands of images in need of proper tagging. Fortunately, it is now possible to add tags with the press of a single key when viewing the images. The realization behind this way of working with images is that most images are with the same few people in the same few places, plus a few "guest" appearances from time to time - say the location of your vacation, or some friends who were visiting you for a week.

To tag your images while viewing them, you need to enter the Assign Tags mode - see . With this enabled, simply press a letter key on your keyboard to either assign or use the assigned tag.

In below, I've just pressed s while watching images and being in the Assign Tags mode. This brought up the dialog where I can specify what tag to assign to that key.

### Step 1 - assigning a macro to the key s

Next, in the line edit I typed sp which suggest "People / Jesper" and "People / Spiff". Both matched the letters I typed. Pressing arrow down to select Spiff and pressing enter, will assign the letter s to adding the tag People / Spiff to the image viewed. This assignment, will be saved for future sessions. To re-assign s to another tag, simply press &Shift;s.

### Step 2 - assigning a macro - typing sp

In below you can see existing keybindings in the right side of the dialog.

### Overview of assigned key bindings

In case the tag you want to assign doesn't already exist in your database, then simply press the Add New button to create it. This can be seen in below

### Adding a new tag

While tagging images from the viewer, you may want to add a tag without binding it to a key. To do so simply press &Ctrl;a. This is also how you open the dialog to see the macro key bindings.

Press &Ctrl;c to copy annotations from the previous image in the viewer list.