← 返回命令列表

Linux command

scanimage 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

List

scanimage -L

Example

scanimage --format png > image.png

Example

scanimage -d device_name > image.pnm

Example

scanimage --resolution 300 > image.pnm

Example

scanimage --mode Color > image.pnm

Example

scanimage -l 0 -t 0 -x 210 -y 297 > image.pnm

说明

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.

参数

-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

FAQ

What is the scanimage command used for?

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.

How do I run a basic scanimage example?

Run `scanimage -L` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -L, --list-devices do in scanimage?

List available scanner devices