2

I have a lot of pictures to scan.

Is it possible, using linux and xsane, to write a script so that the computer will keep scanning, giving incremental filenames to the resulting files ?

I'd really like something that just keep scanning, or, even better, that waits for me to press any key to scan the next picture.

Hennes
  • 65,804
  • 7
  • 115
  • 169
Manu
  • 3,050

1 Answers1

7

Apparently the scanimage program has batch scanning built in, so no scriping is required:

scanimage --format=tiff --batch="/path/to/scanned_image-%d.tiff" --batch-prompt

See the man page for more info.

"The --batch options provide the features for scanning documents using document feeders."

"--batch [format] is used to specify the format of the filename that each page will be written to."

"--batch-prompt will ask for pressing RETURN before scanning a page. This can be used for scanning multiple pages without an automatic document feeder."

hasseg
  • 1,086