[sane-devel] problems with scanimage

johon Doe johond at yahoo.com
Thu Dec 15 09:02:30 UTC 2005



--- Henning Meier-Geinitz <henning at meier-geinitz.de>
wrote:

> Hi,
> 
> On Wed, Dec 14, 2005 at 09:43:13AM -0800, johon Doe
> wrote:

> The backend you use doesn't seem to provide the
> option "custom-gamma".
> scanimage --help shows all available options.
> By the way, which backend and scanner do you use?
> 
ok, I undestand.. I use epson backend..



> > scanimage: attempted to set inactive option
> halftoning
> 
> Thwe option "halftoning" seems to exist in your
> backend, but it
> doesn't work in the current mode. maybe it works in
> mode "lineart"?
> 

no it doesnt work ..

> > scanimage --brightness 1 >> prova4.tiff

> It's similar in this case. The order of options is
> important, by the
> way. Setting the mode before brightness may help if
> gray mode uses
> option brightness.
> 

 $ scanimage --mode Gray --brightness 1
scanimage: attempted to set inactive option brightness

Anyway I forgotten to say that the epson scanner is
over the lan (with saned) and if I use sanetwain on
win32 I see lot's of options are disabled but if I use
xsane on linux all options work fine...

 
> You can also check if an option is active in a
> specific mode like this:
> 
> scanimage --mode Gray --help
> 



$ scanimage --mode Gray --help
Usage: scanimage [OPTION]...

Start image acquisition on a scanner device and write
PNM image data to
standard output.

-d, --device-name=DEVICE   use a given scanner device
(e.g. hp:/dev/scanner)
    --format=pnm|tiff      file format of output file
-i, --icc-profile=PROFILE  include this ICC profile
into TIFF file
-L, --list-devices         show available scanner
devices
-f, --formatted-device-list=FORMAT similar to -L, but
the FORMAT of the output
                           can be specified: %d
(device name), %v (vendor),
                           %m (model), %t (type), and
%i (index number)
-b, --batch[=FORMAT]       working in batch mode,
FORMAT is `out%d.pnm' or
                           `out%d.tif' by default
depending on --format
    --batch-start=#        page number to start naming
files with
    --batch-count=#        how many pages to scan in
batch mode
    --batch-increment=#    increase number in filename
by an amount of #
    --batch-double         increment page number by
two for 2sided originals
                           being scanned in a single
sided scanner
    --batch-prompt         ask for pressing a key
before scanning a page
    --accept-md5-only      only accept authorization
requests using md5
-n, --dont-scan            only set options, don't
actually scan
-T, --test                 test backend thoroughly
-h, --help                 display this help message
and exit
-v, --verbose              give even more status
messages
-V, --version              print version information

Options specific to device
`net:192.168.1.21:epson:libusb:001:002':
  Scan Mode:
    --mode Binary|Gray|Color [Gray]
        Selects the scan mode (e.g., lineart,
monochrome, or color).
    --depth 8 [inactive]
        Number of bits per sample, typical values are
1 for "line-art" and 8
        for multibit scans.
    --halftoning None|Halftone A (Hard Tone)|Halftone
B (Soft Tone)|Halftone C (Net Screen)|Dith
er A (4x4 Bayer)|Dither B (4x4 Spiral)|Dither C (4x4
Net Screen)|Dither D (8x4 Net Screen)|Text 
Enhanced Technology|Download pattern A|Download
pattern B [inactive]
        Selects the halftone.
    --dropout None|Red|Green|Blue [None]
        Selects the dropout.
    --brightness 0..0 [inactive]
        Selects the brightness.
    --sharpness -2..2 [inactive]
        
    --gamma-correction User defined (Gamma=1.0)|User
defined (Gamma=1.8) [User defined (Gamma=1.
8)]
        Selects the gamma correction value from a list
of pre-defined devices
        or the user defined table, which can be
downloaded to the scanner
    --color-correction No Correction|User
defined|Impact-dot printers|Thermal printers|Ink-jet p
rinters|CRT monitors [inactive]
        Sets the color correction table for the
selected output device.
    --resolution 75|150|300|600dpi [75]
        Sets the resolution of the scanned image.
    --threshold 0..255 [inactive]
        Select minimum-brightness to get a white point
  Advanced:
    --mirror[=(yes|no)] [inactive]
        Mirror the image.
    --speed[=(yes|no)] [no]
        Determines the speed at which the scan
proceeds.
    --auto-area-segmentation[=(yes|no)] [inactive]
        
    --short-resolution[=(yes|no)] [no]
        Display short resolution list
    --zoom 50..200 [inactive]
        Defines the zoom factor the scanner will use
    --red-gamma-table 0..255,...
        Gamma-correction table for the red band.
    --green-gamma-table 0..255,...
        Gamma-correction table for the green band.
    --blue-gamma-table 0..255,...
        Gamma-correction table for the blue band.
--wait-for-button[=(yes|no)] [no]
        After sending the scan command, wait until the
button on the scanner
        is pressed to actually start the scan process.
  Color correction coefficients:
    --cct-1 -127..127 [inactive]
        Controls green level
    --cct-2 -127..127 [inactive]
        Adds to red based on green level
    --cct-3 -127..127 [inactive]
        Adds to blue based on green level
    --cct-4 -127..127 [inactive]
        Adds to green based on red level
    --cct-5 -127..127 [inactive]
        Controls red level
    --cct-6 -127..127 [inactive]
        Adds to blue based on red level
    --cct-7 -127..127 [inactive]
        Adds to green based on blue level
    --cct-8 -127..127 [inactive]
        Adds to red based on blue level
    --cct-9 -127..127 [inactive]
        Controls blue level
  Preview:
    --preview[=(yes|no)] [no]
        Request a preview-quality scan.
    --preview-speed[=(yes|no)] [no]
        
  Geometry:
    -l 0..215.9mm [0]
        Top-left x position of scan area.
    -t 0..297.18mm [0]
        Top-left y position of scan area.
    -x 0..215.9mm [215.9]
        Width of scan-area.
    -y 0..297.18mm [297.18]
        Height of scan-area.
    --quick-format CD|A5 portrait|A5
landscape|Letter|A4|Max [Max]
        
  Optional equipment:
    --source Flatbed [inactive]
        Selects the scan source (such as a
document-feeder).
    --auto-eject[=(yes|no)] [inactive]
        Eject document after scanning
    --film-type Positive Film|Negative Film [inactive]
        
    --focus-position Focus on glass|Focus 2.5mm above
glass [inactive]
        Sets the focus position to either the glass or
2.5mm above the glass
    --bay  1 | 2 | 3 | 4 | 5 | 6  [inactive]
        Select bay to scan
    --eject [inactive]
        Eject the sheet in the ADF
    --adf_mode Simplex|Duplex [inactive]
        Selects the ADF mode (simplex/duplex)

Type ``scanimage --help -d DEVICE'' to get list of all
options for DEVICE.

List of available devices:
    net:192.168.1.21:epson:libusb:001:002


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the sane-devel mailing list