[sane-devel] does order of options for scanimage matter?

Major A andras@users.sourceforge.net
Fri, 7 Mar 2003 10:53:15 +0000


> > SCANIMAGE.EXE -d hp --mode Color --resolution 150
> > --brightness 20 --contrast 40 -l15 -t35 -x60 -y105  > tst.pnm
> > 
> > scans the correct section, but
> > 
> > scanimage.exe -d hp -l 15 -t 35 -x 60 -y 105 --mode
> > Color --resolution 150 --contrast 40 --brightness 20 > tst1.pnm
> > 
> > does not.
> 
> > does order of options for scanimage matter in general or for specific backends?
> 
> The order does matter. Setting one option may change the availability
> of others, e.g. threshold is only avaliable if in lineart mode.
> 
> However, I don't see what's wrong in this case. Maybe backend-specific.

Just an idea, without having looked at the backend code: maybe the
backend calculates the scan area (in the scanner's units) based on the
(wrong) default resolution instead of that set (later) on the command
line?

  Andras

===========================================================================
Major Andras
    e-mail: andras@users.sourceforge.net
    www:    http://andras.webhop.org/
===========================================================================