Forrest logo
back to the scanimage tool

scanimage:tldr:8cc1a

scanimage: Scan an image and save it to a file.
$ scanimage --format=${select} > ${path-to-new_image}
try on your machine

This command is used to scan an image using a scanner connected to your computer. Let's break down the command into its components:

  1. scanimage: It is the command-line tool used for scanning documents.

  2. --format=${select}: This option specifies the format in which the scanned image should be saved. Here, ${select} is a placeholder indicating that you need to specify the desired format. For example, you can use --format=jpeg to save the image in JPEG format or --format=tiff to save it in TIFF format.

  3. > ${path-to-new_image}: The > symbol is a redirection operator that directs the output of the command to a file instead of the console. ${path-to-new_image} is another placeholder indicating the desired location and name of the new image file. You need to replace it with the actual path and filename you want to use. For example, > ~/Documents/scan.jpg will save the scanned image as "scan.jpg" in the "Documents" folder of your home directory.

By executing this command, the scanimage tool will scan the image based on the specified format and save it as a file at the specified location.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the scanimage tool