kopia lustrzana https://gitlab.com/sane-project/backends
				
				
				
			
		
			
				
	
	
		
			323 wiersze
		
	
	
		
			9.4 KiB
		
	
	
	
		
			Groff
		
	
	
			
		
		
	
	
			323 wiersze
		
	
	
		
			9.4 KiB
		
	
	
	
		
			Groff
		
	
	
| .TH scanimage 1 "24 May 2001"
 | |
| .IX scanimage
 | |
| .SH NAME
 | |
| scanimage - scan an image
 | |
| .SH SYNOPSIS
 | |
| .B scanimage
 | |
| .RB [ -d | --device-name
 | |
| .IR dev ]
 | |
| .RB [ --format
 | |
| .IR format ]
 | |
| .RB [ --accept-md5-only ]
 | |
| .RB [ -h | --help ]
 | |
| .RB [ -L | --list-devices ]
 | |
| .RB [ -T | --test ]
 | |
| .RB [ -v | --verbose ]
 | |
| .RB [ -V | --version ]
 | |
| .RB [ --batch[=FORMAT] ]
 | |
| .RB [ --batch-start=# ]
 | |
| .RB [ --batch-count=# ]
 | |
| .RB [ --batch-increment=# ]
 | |
| .RB [ --batch-double ]
 | |
| .RI [ device-specific-options ]
 | |
| .SH DESCRIPTION
 | |
| .B scanimage
 | |
| is a command-line interface to control image acquisition devices such
 | |
| as flatbed scanners or cameras.  The device is controlled via
 | |
| command-line options.  After command-line processing,
 | |
| .B scanimage
 | |
| normally proceeds to acquire an image.  The image data is written to
 | |
| standard output in one of the PNM (portable aNyMaP) formats (PBM for
 | |
| black-and-white images, PGM for grayscale images, and PPM for color
 | |
| images) or in TIFF (black-and-white, grayscale or color).
 | |
| .B scanimage
 | |
| accesses image acquisition devices through the SANE (Scanner Access
 | |
| Now Easy) interface and can thus support any device for which there
 | |
| exists a SANE backend (try "apropos sane\-" to get a list of available
 | |
| backends).
 | |
| .SH OPTIONS
 | |
| .PP
 | |
| The
 | |
| .B -d
 | |
| or
 | |
| .B --device-name
 | |
| options must be followed by a SANE device-name like "epson:/dev/sg0" or 
 | |
| "hp:/dev/usbscanner0". A (partial) list of available devices can be obtained
 | |
| with the
 | |
| .B --list-devices
 | |
| option (see below).  If no device-name is specified explicitly,
 | |
| .B scanimage
 | |
| reads a device-name from the environment variable
 | |
| .BR SANE_DEFAULT_DEVICE .
 | |
| If this variable is not set, 
 | |
| .B scanimage
 | |
| will attempt to open the first available device.
 | |
| .PP
 | |
| The
 | |
| .B --format 
 | |
| .I format
 | |
| selects how image data is written to standard output.
 | |
| .I format
 | |
| can be
 | |
| .B pnm
 | |
| or
 | |
| .B
 | |
| tiff
 | |
| to select file format PNM or TIFF. If
 | |
| .B --format
 | |
| is not used, PNM is written.
 | |
| .PP
 | |
| The
 | |
| .B --accept-md5-only
 | |
| option only accepts user authorization requests that support MD5 security. The
 | |
| SANE network daemon (saned) is capable of doing such requests. See
 | |
| .B saned(1)
 | |
| .PP
 | |
| The
 | |
| .B -h
 | |
| or
 | |
| .B --help
 | |
| options request help information.  The information is printed on
 | |
| standard output and in this case, no attempt will be made to acquire
 | |
| an image.
 | |
| .PP
 | |
| The
 | |
| .B -L
 | |
| or
 | |
| .B --list-devices
 | |
| option requests a (partial) list of devices that are available.  The
 | |
| list is not complete since some devices may be available, but are not
 | |
| listed in any of the configuration files (which are typically stored
 | |
| in directory @CONFIGDIR@).  This is particularly the case when
 | |
| accessing scanners through the network.  If a device is not listed in
 | |
| a configuration file, the only way to access it is by its full device
 | |
| name.  You may need to consult your system administrator to find out
 | |
| the names of such devices.
 | |
| .PP
 | |
| The
 | |
| .B -T
 | |
| or
 | |
| .B --test
 | |
| option requests that
 | |
| .B scanimage
 | |
| perform a few simple sanity tests to make sure the backend works as
 | |
| defined by the SANE API (in particular the
 | |
| .B sane_read
 | |
| function is excercised by this test).
 | |
| .PP
 | |
| The
 | |
| .B -v
 | |
| or
 | |
| .B --verbose
 | |
| options increase the verbosity of the operation of
 | |
| .B scanimage.
 | |
| The option may be specified repeatedly, each time increasing the verbosity
 | |
| level.
 | |
| 
 | |
| The
 | |
| .B -V
 | |
| or
 | |
| .B --version
 | |
| option requests that
 | |
| .B scanimage
 | |
| prints the program and package name, the version number of
 | |
| the SANE distribution that it came with and the version of the backend
 | |
| that it loads. Usually that's the dll backend. If more information about
 | |
| the version numbers of the backends are necessary, the DEBUG variable for
 | |
| the dll backend can be used. Example: SANE_DEBUG_DLL=3 scanimage -L.
 | |
| 
 | |
| The
 | |
| .B --batch*
 | |
| options provide the features for scanning documents using document
 | |
| feeders.  
 | |
| .B --batch[=FORMAT]
 | |
| is used to specify the format of the filename that each page will be
 | |
| written to.  Each page is written out to a single file.  If the FORMAT
 | |
| is not specified, the default of out%d.tif will be used.  
 | |
| FORMAT is given as a printf style string with one integer
 | |
| parameter.  
 | |
| .B --batch-start=#
 | |
| selects the page number to start naming files with. If this option is not
 | |
| given, the counter will start at 0.
 | |
| .B --batch-count=#
 | |
| specifies the number of pages to attempt to scan.  If not given, 
 | |
| scanimage will continue scanning until the scanner returns a state
 | |
| other than OK.  Not all scanners with document feeders signal when the
 | |
| ADF is empty, use this command to work around them.
 | |
| With 
 | |
| .B --batch-increment=#
 | |
| you can change the amount that the number in the filename is incremented
 | |
| by.  Generally this is used when you are scanning double-sided documents
 | |
| on a single-sided document feeder.  A specific command is provided to
 | |
| aid this:
 | |
| .B --batch-double
 | |
| will automatically set the increment to 2.
 | |
| 
 | |
| As you might imagine, much of the power of
 | |
| .B scanimage
 | |
| comes from the fact that it can control any SANE backend.  Thus, the
 | |
| exact set of command-line options depends on the capabilities of the
 | |
| selected device.  To see the options for a device named
 | |
| .IR dev ,
 | |
| invoke
 | |
| .B scanimage
 | |
| via a command-line of the form:
 | |
| .PP
 | |
| .RS
 | |
| scanimage --help --device
 | |
| .I dev
 | |
| .RE
 | |
| .PP
 | |
| The documentation for the device-specific options printed by
 | |
| .B --help
 | |
| is best explained with a few examples:
 | |
| 
 | |
|  --brightness -100..100% [0]
 | |
| .br
 | |
|     Controls the brightness of the acquired image.
 | |
| .PP
 | |
| .RS
 | |
| The description above shows that option
 | |
| .B --brightness
 | |
| expects an option value in the range from -100 to 100 percent.  The
 | |
| value in square brackets indicates that the current option value is 0
 | |
| percent.
 | |
| .RE
 | |
| 
 | |
|  --default-enhancements
 | |
| .br
 | |
|     Set default values for enhancement controls.
 | |
| .PP
 | |
| .RS
 | |
| The description above shows that option
 | |
| .B --default-enhancements
 | |
| has no option value.  It should be thought of as having an immediate
 | |
| effect at the point of the command-line at which it appears.  For
 | |
| example, since this option resets the
 | |
| .B --brightness
 | |
| option, the option-pair
 | |
| .B --brightness 50 --default-enhancements
 | |
| would effectively be a no-op.
 | |
| .RE
 | |
| 
 | |
|  --mode Lineart|Gray|Color [Gray]
 | |
| .br
 | |
|     Selects the scan mode (e.g., lineart or color).
 | |
| .PP
 | |
| .RS
 | |
| The description above shows that option
 | |
| .B --mode
 | |
| accepts an argument that must be one of the strings
 | |
| .BR Lineart ,
 | |
| .BR Gray ,
 | |
| or
 | |
| .BR Color .
 | |
| The value in the square bracket indicates that the option is currently
 | |
| set to
 | |
| .BR Gray .
 | |
| For convenience, it is legal to abbreviate the string values as long as
 | |
| they remain unique.  Also, the case of the spelling doesn't matter.  For
 | |
| example, option setting
 | |
| .B --mode col
 | |
| is identical to
 | |
| .BR "--mode Color" .
 | |
| .RE
 | |
| 
 | |
|  --custom-gamma[=(yes|no)] [inactive]
 | |
| .br
 | |
|     Determines whether a builtin or a custom gamma-table
 | |
| .br
 | |
|     should be used.
 | |
| .PP
 | |
| .RS
 | |
| The description above shows that option
 | |
| .B --custom-gamma
 | |
| expects either no option value, a "yes" string, or a "no" string.
 | |
| Specifying the option with no value is equivalent to specifying "yes".
 | |
| The value in square-brackets indicates that the option is not
 | |
| currently active.  That is, attempting to set the option would result
 | |
| in an error message.  The set of available options typically depends
 | |
| on the settings of other options.  For example, the
 | |
| .B --custom-gamma
 | |
| table might be active only when a grayscale or color scan-mode has
 | |
| been requested.
 | |
| 
 | |
| Note that the
 | |
| .B --help
 | |
| option is processed only after all other options have been processed.
 | |
| This makes it possible to see the option settings for a particular
 | |
| mode by specifying the appropriate mode-options along
 | |
| with the
 | |
| .B --help
 | |
| option.  For example, the command-line:
 | |
| .PP
 | |
|   scanimage --help --mode color
 | |
| .PP
 | |
| would print the option settings that are in effect when the color-mode
 | |
| is selected.
 | |
| .RE
 | |
| 
 | |
|  --gamma-table 0..255,...
 | |
| .br
 | |
|     Gamma-correction table.  In color mode this option
 | |
| .br
 | |
|     equally affects the red, green, and blue channels
 | |
| .br
 | |
|     simultaneously (i.e., it is an intensity gamma table).
 | |
| .PP
 | |
| .RS
 | |
| The description above shows that option
 | |
| .B --gamma-table
 | |
| expects zero or more values in the range 0 to 255.  For example, a
 | |
| legal value for this option would be "3,4,5,6,7,8,9,10,11,12".  Since
 | |
| it's cumbersome to specify long vectors in this form, the same can be
 | |
| expressed by the abbreviated form "[0]3-[9]12".  What this means is
 | |
| that the first vector element is set to 0, the 9-th element is set to
 | |
| 12 and the values inbetween are interpolated linearly.  Of course, it
 | |
| is possible to specify multiple such linear segments.  For example,
 | |
| "[0]3-[2]3-[6]7,[7]10-[9]6" is equivalent to "3,3,3,4,5,6,7,10,8,6".
 | |
| .RE
 | |
| 
 | |
| .br
 | |
|  --filename <string> [/tmp/input.ppm]
 | |
| .br
 | |
|     The filename of the image to be loaded.
 | |
| .PP
 | |
| .RS
 | |
| The descriptoin above is an example of an option that takes an
 | |
| arbitrary string value (which happens to be a filename).  Again,
 | |
| the value in brackets show that the option is current set to the
 | |
| filename 
 | |
| .BR /tmp/input.ppm .
 | |
| .RE
 | |
| 
 | |
| .SH ENVIRONMENT
 | |
| .TP
 | |
| .B SANE_DEFAULT_DEVICE
 | |
| The default device-name.
 | |
| .SH FILES
 | |
| .TP
 | |
| .I @CONFIGDIR@
 | |
| This directory holds various configuration files.  For details, please
 | |
| refer to the manual pages listed below.
 | |
| .TP
 | |
| .I ~/.sane/pass
 | |
| This file contains a lines of the form
 | |
| .PP
 | |
| .RS
 | |
| user:password:resource
 | |
| .PP
 | |
| scanimage uses this information to answer user authorization requests
 | |
| automatically. The file must have 0600 permissions or stricter. You should
 | |
| use this file in conjunction with the --accept-md5-only option to avoid
 | |
| server-side attacks. The resource may contain any character but is limited
 | |
| to 127 characters.
 | |
| .SH "SEE ALSO"
 | |
| sane(7), xscanimage(1), xcam(1), xsane(1), sane\-dll(5), sane\-net(5), 
 | |
| sane-"backendname"(5)
 | |
| .SH AUTHOR
 | |
| David Mosberger, Andreas Beck, Gordon Matzigkeit and Caskey Dickson
 | |
| .SH BUGS
 | |
| For vector options, the help output currently has no indication as to
 | |
| how many elements a vector-value should have.
 |