Adjust the scan settings using scanimage

The scanimage application is a command line only application that uses the first scanner found and the scan setting defaults. The command initiates the scan and stores the image in a PXM or TIFF format. You can provide command line options to specify the scan settings.

Command Option

Values

Function

ip-address

IP address of the printer

Specify the IP address of the printer.

user-name

User Name

Specify the user name.

profile-name

Profile Name

Specify a profile name that will be posted to the printer. The Profile Name should be unique within a user name. However, a profile name can be used more than once provided that it is being used by different user names.

content-type

Text

Text/Graphics

Photo

Choose the kind of document being scanned.

scan-resolution

75

150

200

300

400

600

Select the scan resolution. All the resolutions of all the printers are displayed as options. Make sure that the resolution you select is supported by the printer you will scan to.

mode

1-bit Black & White

8-bit Grayscale

24-bit Color

Select the color depth.

original-size

Letter

Executive

Legal

A3

A4

A5

B4

B5

Tabloid

Folio

Statement

3x5 Photo

4x6 Photo

Business Card

Book Original

Auto Size

Mixed Size

Specify the size of the document being scanned. All the document sizes of all the printers are displayed as options. Make sure that the option you select is supported by the printer you will scan to.

scan-both-sides

no

yes

Perform a duplex scan. Make sure that the selected device has a duplex scanner.

orientation

portrait

landscape

Select portrait or landscape.

brightness

1-9

Select the brightness from 1–9.

contrast

0-5

Select the contrast from 0–5.

source

Single Page

Multiple Pages

Specify if you are scanning a single-sheet or a multiple-page document.


For example, to initiate a scan given these settings:

IP address

192.168.1.10

Profile name

Application

Size of original document

Legal


type in the command line, scanimage --ip-address=192.168.1.10 --profile-name=Application original-size=Legal > /tmp/image.pxm.

Notes: