Linux: Scan An Image With HP Scanners

Linux: Scan An Image With HP Scanners

To scan an image using an HP scanner on a Linux system, you can use the scanimage command, which is part of the SANE (Scanner Access Now Easy) package.

To install SANE on a Debian or Ubuntu system, you can use the following command:

sudo apt-get install sane
Sourc‮.www:e‬lautturi.com

To scan an image, you can use the scanimage command followed by the --format and --resolution options to specify the output format and resolution. For example, to scan an image and save it as a 300 dpi PNG file:

scanimage --format=png --resolution 300 > image.png

You can also use the --source option to specify the scanner to use if you have multiple scanners connected to the system. For example:

scanimage --source "hp:libusb:001:005" --format=png --resolution 300 > image.png

To view the available options for the scanimage command, you can use the --help option:

scanimage --help

For more information about using SANE and the scanimage command, you can consult the SANE documentation at the following link:

https://www.sane-project.org/man/scanimage.1.html

You can also use a graphical frontend for SANE, such as Simple Scan, to scan images using a graphical user interface. To install Simple Scan on a Debian or Ubuntu system, you can use the following command:

sudo apt-get install simple-scan
Created Time:2017-10-30 10:17:46  Author:lautturi