# The &skanlite; Handbook

Kåre Särs

    kare dot sars at iki dot fi

Anne-Marie Mahfouf

    &Anne-Marie.Mahfouf.mail;

2008, 2013 Kåre Särs
2008 &Anne-Marie.Mahfouf;
&FDLNotice;
2016-08-24
&skanlite; 2.0.0

&skanlite; is an image scanning application that does nothing more than scan and save images.

&skanlite; is based on libksane, a &kde; interface for SANE library to control image scanners.

KDE kdegraphics scanner images

## Introduction

&skanlite; is a simple image scanning application that does nothing more than scan and save images. &skanlite; can open a save dialog for every image scanned or save the images immediately in a specified folder with auto-generated names and format. The user can also choose to show the scanned image before saving.

&skanlite; can save images in all the formats supported by &Qt;. For example the following formats:

- png (8 and 16 bits per color)

- jpeg, jpg, jpeg 2000

- bmp

You can check the status of your scanner support from the SANE project website through the Supported Devices page on the SANE website.

## Using &skanlite;

### Scanner Selection

A default scanner can be specified on the command line of &skanlite; using `skanlite -d [device name]` in a terminal. If the selected scanner cannot be opened or if no default scanner is provided, a scanner selection dialog is opened.

&skanlite; scanner selection dialog
&skanlite; scanner selection dialog

The user can choose the scanner to be used and press OK to open the scanner. Pressing Cancel will cause &skanlite; to exit.

No scanner found
No scanner found

In case no devices were found, maybe because the scanner is not plugged in or switched off, correct that. Then the Reload device list can be used to reload the list of scanners.

Not all drivers/backends support this feature. In that case quit &skanlite;, connect your scanner and restart the application.

## &skanlite; Main Window

&skanlite; main window
&skanlite; main window

In the main window, the user has two sets of scan options: Basic Options and Scanner Specific Options. The Basic Options tab contains the most common parameters that the SANE scanner backends provide, while the Scanner Specific Options tab contains all the options of the backend. The options listed here depend on SANE support for your driver: libksane (which &skanlite; uses) should be able to display most of the types of parameters that SANE provides (analog gamma tables are not supported at this time).

Scanner Specific Options tab
Scanner Specific Options tab

The scanner specific options contains more detailed options of the backends. &skanlite; (libksane) does not have any special handling for these options.

If you are satisfied with your settings, you can use the little arrow on the top of the options splitter. When clicked it collapses or expands the options. The collapser can overlap the preview area, but fades away when the mouse cursor moves out of the collapser.

### Scanning

To scan an image, the user can start with a preview scan and then select the part of the scan area to do the final scan on. The preview scan is started by pressing the preview button.

The Preview Button
The Preview Button

When the preview is scanned the area for the final image can be selected.

Selection and zoom
Selection and zoom

To better select the image the user can zoom in, out, to the current selection or zoom to fit the whole preview to the window.

The "zoom to fit" button
The "zoom to fit" button

When the image is selected the final image can be acquired by pressing the final scan button.

The final scan button
The final scan button

You will see the progress of the scan.

Scanning in progress
Scanning in progress

If Preview before saving is selected in the settings, the scanned image is displayed in a preview window as you can see below on the screenshot. If Save is pressed, the image is saved and if Discard is pressed the preview is discarded and you return to the main window.

The Preview Window
The Preview Window

### Scanning Multiple Selections

Sometimes you need only certain parts of an image. Instead of scanning the whole picture and then using a graphics application (⪚ &kolourpaint;) to save the different image parts into separate files, use &skanlite;'s multiple selection feature.

Multiple Selections
Multiple Selections

Scan a preview and then use the &LMB; to select the first part of the image in the preview. Hover the selected area with mouse cursor and click on the green + icon to select the area. Selected areas are indicated by a red border. Now select the next parts of the image in the same way.

To remove a single selection hover the area with the mouse cursor and click on the red - icon. With Clear Selections from the context menu launched with the &RMB; all selections in a preview can be removed.

If you placed two separate images or photos on you scanner and started a preview &skanlite; automatically preselect the different areas. This behaviour can be switched off in the settings dialog.

If you are satisfied with your choice starting the final batch scan of all selections. The images are saved using the batch renaming feature described in the settings dialog.

### &skanlite; settings

By clicking the Settings button, the settings dialog is brought up before the main window. You can choose the most important settings here.

Here's a screenshot of &skanlite; settings dialog
&skanlite; settings dialog

Preview before saving:

  The user can chose to preview the image before saving. In this case the Preview before saving option can be left checked. If the user does not want to preview the image this option should then be unchecked.

Save Mode:

  This setting allows you to choose how &skanlite; will save the images. If you choose Open the save dialog for every image the save dialog will be opened for every scanned image. If you prefer &skanlite; to auto-save (by auto-generating a name and saving the image in a predefined folder) you can choose Open the save dialog for the first image only. This option will open the following "Save Location" dialog for the first scanned image.

  Here's a screenshot of &skanlite; save location dialog

  &skanlite; Save Location dialog.
Save Location:

  This setting defines the default save location and file naming. The default save location is your home folder and you can change this location by clicking on the ... button.

Name Format:

  This parameter defines the image prefix for the auto-saved images and is also the suggested name for the image in the save dialog. The auto-saved image will have a numeric suffix (the ### will be replaced by numbers) that is increased every time an image is saved.

  You can also choose the save format of the file, default is png.

Specify save quality:

  The user can chose to specify the image quality to be used for saving the images. The image quality setting affects the compression level used for saving. If Specify save quality is not checked, the quality is the default value chosen by &Qt;.

Set preview resolution (DPI)

  &skanlite; is using heuristics to try to get a sane resolution, but if that fails and the resolution is too high or low, then the preview resolution can be manually set with this option.

Disable automatic selections

  By default automatic selections are enabled; and after a preview, libksane does try to automatically select the images in the preview and should batch scan the selected areas. ⪚ if you place two photos on the scanner and do a preview, &skanlite; will automatically add selections of the photos.

  If on the other hand you are usually scanning documents it might be that the automatic selection will select a lot of different parts in the documents and you have to manually remove the selections. To avoid that tick the checkbox and disable automatic selection.

Revert scanner options to default values

  The last used settings are reloaded on startup. If you have screwed up the options (for example if you have changed the color correction settings, available in some backends, without knowing what they mean), the image can start to look very odd. For that scenario this option provides a way to revert the setting to the default values, which are a combination of backend and libksane defaults.

### Help, About, Settings and Close

At the bottom of the main window you find the Help, About, Settings and Close buttons.

The Main Window Buttons
The Main Window Buttons

The Help button brings up the &kde; Help center with the &skanlite; manual. The About button brings up the &kde; About dialog for &skanlite;. The Settings button displays the settings dialog and the Close button is used to exit &skanlite;.

## Credits and License

&skanlite;

Program copyright 2007 Kåre Särs kare dot sars at iki dot fi

Contributors:

- Author: Kåre Särs kare dot sars at iki dot fi

&underFDL;

&skanlite; is licensed under the GPL and the libksane library, used by &skanlite;, is licensed under the LGPL. Note: libsane is licensed under GPL with an exception.

&documentation.index;