Discussion:
[sane-devel] scanning an entire A4 page under commandline
Aldo
2005-08-30 14:05:20 UTC
Permalink
Hi,

I am vision impaired and I can only use the console under Gnu/Linux.
I've tried to scan, doing:
scanimage -v --format tiff >outputfile.tif

It works but the scanner only picks a portion of 248x256 pixels at
24-bit, while there is no any option mentionned in the man page to tell
scanimage that it is a full (A4) page.

Someone an idea?

Info:
distribution is Debian Sarge,
with libsane and sane-utils (sufficient to scan uner commandline),
v. 1.0.15-9
And scanner is CanoScan LiDE20.

My partner hadn't tested under xsane yet, due to the discussion here
about "broken" driver;
I'm temporarily doing tests from the console.

Aldo.
m. allan noah
2005-08-30 14:12:56 UTC
Permalink
Aldo- the options for paper size and scanning area are provided by the
'backend' which is a driver that talks to the scanner. scanimage is a
'frontend' which talks to you. try scanimage --help, which will tell the
frontend to list all the options the backend provides.

allan
Post by Aldo
Hi,
I am vision impaired and I can only use the console under Gnu/Linux.
scanimage -v --format tiff >outputfile.tif
It works but the scanner only picks a portion of 248x256 pixels at
24-bit, while there is no any option mentionned in the man page to tell
scanimage that it is a full (A4) page.
Someone an idea?
distribution is Debian Sarge,
with libsane and sane-utils (sufficient to scan uner commandline),
v. 1.0.15-9
And scanner is CanoScan LiDE20.
My partner hadn't tested under xsane yet, due to the discussion here
about "broken" driver;
I'm temporarily doing tests from the console.
Aldo.
--
"so don't tell us it can't be done, putting down what you don't know.
money isn't our god, integrity will free our souls" - Max Cavalera
m. allan noah
2005-08-30 16:28:08 UTC
Permalink
forget that you are running debian for a second, and just run:

scanimage --help

this will make the sane front-end (scanimage) display all the options that
the scanner backend (driver) provides.

oh- and respond to the whole list, not just to me...

allan
Hi,
Post by m. allan noah
Aldo- the options for paper size and scanning area are provided by the
'backend' which is a driver that talks to the scanner. scanimage is a
'frontend' which talks to you. try scanimage --help, which will tell the
frontend to list all the options the backend provides.
I don't understand: there's no any info about backend under Sarge
(Debian).
Is there any Debian user here who can send an output of his/her
dpkg -l |grep sane or so?
Aldo.
--
"so don't tell us it can't be done, putting down what you don't know.
money isn't our god, integrity will free our souls" - Max Cavalera
Gerhard Jaeger
2005-08-31 07:11:11 UTC
Permalink
Hi,
Post by Aldo
Hi,
I am vision impaired and I can only use the console under Gnu/Linux.
scanimage -v --format tiff >outputfile.tif
It works but the scanner only picks a portion of 248x256 pixels at
24-bit, while there is no any option mentionned in the man page to tell
scanimage that it is a full (A4) page.
Someone an idea?
distribution is Debian Sarge,
with libsane and sane-utils (sufficient to scan uner commandline),
v. 1.0.15-9
And scanner is CanoScan LiDE20.
My partner hadn't tested under xsane yet, due to the discussion here
about "broken" driver;
I'm temporarily doing tests from the console.
Aldo.
the default area of the plustek backend is NOT A4, it's exactly the small
portion you currently see.
You might use scanimage --help to see the available options, i.e.:
[SNIPSNAP]
Geometry:
-l 0..215mm [0]
Top-left x position of scan area.
-t 0..297mm [0]
Top-left y position of scan area.
-x 0..215mm [126]
Width of scan-area.
-y 0..297mm [76.21]
Height of scan-area.

Here you see the default area in brackets.
scanimage -x 215 -y 297 -format tiff >outputfile.tif
should give you the expected result.

HTH
Gerhard
Osvaldo La Rosa
2005-08-31 12:15:49 UTC
Permalink
Post by Gerhard Jaeger
the default area of the plustek backend is NOT A4, it's exactly the small
portion you currently see.
Ah OK, but I don't understand why not A4. No matter.
Post by Gerhard Jaeger
[SNIPSNAP]
-l 0..215mm [0]
Top-left x position of scan area.
-t 0..297mm [0]
Top-left y position of scan area.
-x 0..215mm [126]
Width of scan-area.
-y 0..297mm [76.21]
Height of scan-area.
Here you see the default area in brackets.
scanimage -x 215 -y 297 -format tiff >outputfile.tif
should give you the expected result.
That's it I think so; cannot test it yet but will do that asap.
My wife was able to scan yesterday simply by adding her to the group
scanner, since this seem to be a bug in the Debian Sarge.
And she was able to use xsane or OpenOffice many times with no crashes,
no driver failure or so, so version 1.0.15-9 of libsane and sane-utils
is Okay.

Thanx,

Aldo.
Osvaldo La Rosa
2005-09-07 16:55:50 UTC
Permalink
Hi Gerhard and list,

On Wed, Aug 31, 2005 at 09:11:11AM +0200, Gerhard Jaeger wrote:
Gerhard Jaeger
2005-09-08 13:49:26 UTC
Permalink
Hi,
Post by Osvaldo La Rosa
Hi Gerhard and list,
Loading...