David A Roberts

Command-line scanning

First you need to find the ID of the required device:

scanimage -L

Output:

device `v4l:/dev/video0' is a Noname Acer CrystalEye webcam virtual device
device `net:linux-box.local:hpaio:/usb/Photosmart_C4100_series?serial=XXXXXXXXXXXXXX' is a Hewlett-Packard Photosmart_C4100_series all-in-one

In this case the device ID is net:linux-box.local:hpaio:/usb/Photosmart_C4100_series?serial=XXXXXXXXXXXXXX Then, for colour scanning:

scanimage -d "net:linux-box.local:hpaio:/usb/Photosmart_C4100_series?serial=XXXXXXXXXXXXXX" \
--mode Color --resolution 300dpi | pnmtopng - > image.png

Or for greyscale scanning:

scanimage -d "net:linux-box.local:hpaio:/usb/Photosmart_C4100_series?serial=XXXXXXXXXXXXXX" \
--mode Gray --resolution 300dpi | pnmtopng - > image.png

blog comments powered by Disqus

Search

Loading...


Random Quote

Loading...



© 2007–2011 David A Roberts. Valid XHTML & CSS. Entries (RSS) & Comments (RSS). Source code.