On 13/08/17 20:41, Mark Trickett via luv-main wrote:
I am having a bit of trouble sorting out the l, t, x
and y parameters,
where they offset from and the like. I will manually initiate each
scan as there is no auto feed, which would not be applicable with a
magazine or book anyway, so can increment a number in the filename,
although some good explanation of doing so would be appreciated.
You are correct that the orientation assumed on a typical A4 scanner is
potrait mode. So x is typically 210mm and y is 297mm for an A4 sheet,
while l and t are the top left x and y coordinates of the scan area,
typically 0.
If you are thinking of it as landscape mode, it isn't as simple as just
swapping these around (and will depend on what you think of as the 'top'
of the scanner).
No doubt you've figured out batch scanning, with something like this:
scanimage --wait-for-button=yes --batch=%.4d.pnm --resolution 300 -x 210
-y 297 --batch-start=1
The 'batch' parameter sets the filename, and the batch start the initial
file number (it can be useful to change the start number if you need to
come back to scanning something later).
Glenn
--
pgp: 833A 67F6 1966 EF5F 7AF1 DFF6 75B7 5621 6D65 6D65