How to use a scanner attached to a Linux PC

The command is called xsane

  1. Place your image in the scanner, face down against the top right hand corner.
  2. Type in the command xsane

    This opens a number of windows.
  3. Use the xsane window to select whether you want the image in colour, or black and white or greyscale and how what resolution to scan it at. For webpages we recommend 72dpi while for newsletters 300dpi

    select

  4. When you change the selection the window should display different options. In this example we are scanning a coloured image.

    colour

  5. Hover the mouse over any of the buttons, menus or sliders to see option they will change

    hover

  6. Select acquire preview and a preview of the image wil be taken (Acquire Preview is located at the bottom of the screen towards the right)

    preview

  7. Hold down the left mouse button to draw a box around the preview of the image to select the part of the preview you would like to scan.

    box

    Don't worry if there is some border - an image manipulation program such as xv can be used when you are finished scanning the picture to cut borders.

  8. Experiment with the options in the xsane window and watch their effect on your image.

    exp

  9. When you are happy with the result select start to start the scan. The start button is located in the same window as the options. In the diagram below it is above the cancel button which is beside the green bar (Receiving RGB data).

    start

  10. A window with your picture will be displayed.

    huge
  11. Looking down towards the base of this picture we can see the size the file containing the image will be if we save it. In this case it is clearly too large at 6.4Mb.

    We can scale the image down. Select the scale image button (a box in a box below) and select how much to scale the x and y dimensions by.

    scale

    In this case to 0.33 x 0.30. Now the image is a smaller size. The mouse can be hovered over the various buttons above the image to see what they do.

  12. To save the end result click on the button marked with a disk.

    tosave
    Select the directory and name for the file. The default name is out.pnm

    save

    The image can be saved in other formats by giving its filename the appropiate ending for example to save it in jpg<

    jpeg
    Note that the convert program can be used at a later stage to transform images from one format to another. Its syntax is
    convert image.format1 image.format2
    
    eg
    
    convert image.tiff image.jpg
    
  13. quit out of xsane.

    quit

If you are unhappy with the image later on you can brighten it, magnify it, flip it, rotate it etc using the program xv from any linux computer.