LinuxCommandLibrary

scanimage

Scan images from SANE-compatible scanners

TLDR

List available scanners

$ scanimage -L
copy
Scan an image and save to file
$ scanimage --format png > image.png
copy
Scan with a specific device
$ scanimage -d device_name > image.pnm
copy
Scan at high resolution
$ scanimage --resolution 300 > image.pnm
copy
Scan in color mode
$ scanimage --mode Color > image.pnm
copy
Scan a specific area
$ scanimage -l 0 -t 0 -x 210 -y 297 > image.pnm
copy

SYNOPSIS

scanimage [-d device] [--format format] [--resolution dpi] [-L]

DESCRIPTION

scanimage scans images using the SANE (Scanner Access Now Easy) interface. It provides command-line access to image scanners, supporting various output formats and scanner-specific options.

PARAMETERS

-L, --list-devices

List available scanner devices
-d, --device-name device
Use the specified scanner device
--format format
Output format (pnm, tiff, png, jpeg, pdf)
--resolution dpi
Set scanning resolution in DPI (default: 75)
--mode mode
Scan mode (Lineart, Gray, Color)
-l, --left mm
Left edge of scan area in mm
-t, --top mm
Top edge of scan area in mm
-x, --width mm
Width of scan area in mm
-y, --height mm
Height of scan area in mm
--brightness value
Set brightness level
--contrast value
Set contrast level
-b, --batch
Enable batch scanning mode
-p, --progress
Show progress during scan
-v, --verbose
Enable verbose output
-A, --all-options
List all available options for the device

CAVEATS

Scanner-specific options vary by device. Use -A to see available options for your scanner. Some features require root access depending on USB permissions.

HISTORY

scanimage is part of the SANE (Scanner Access Now Easy) project, providing a standardized interface for image scanners on Unix-like systems since 1996.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community