Closed andi-blafasl closed 11 years ago
until i fix that you can remove --source from the $cmd
variable on line 854 of index.php
it is a dirty fix, but will work
before:
$cmd="scanimage -d \"$DEVICE\" -l $X -t $Y -x $SIZE_X -y $SIZE_Y --resolution $QUALITY --source $SOURCE --mode $MODE $LAMP--format=ppm";
after:
$cmd="scanimage -d \"$DEVICE\" -l $X -t $Y -x $SIZE_X -y $SIZE_Y --resolution $QUALITY --mode $MODE $LAMP--format=ppm";
Can you post the full output of scanimage --help
or just grab it off the scanner info page
http://127.0.0.1/index.php?page=Device%20Notes
then click the device url
edit: my umax appears to be the same way with the --source option
almost done with this one
my umax changed it's default from Normal to Inactive @.@
Thank you for your fast replay. The quick and dirty Fix is implemented and it works!
Here is the full output ot scanimage --help
Usage: scanimage [OPTION]...
Start image acquisition on a scanner device and write image data to
standard output.
Parameters are separated by a blank from single-character options (e.g.
-d epson) and by a "=" from multi-character options (e.g. --device-name=epson).
-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), %i (index number), and
%n (newline)
-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 page number in filename by #
--batch-double increment page number by two, same as
--batch-increment=2
--batch-prompt ask for pressing a key before scanning a page
--accept-md5-only only accept authorization requests using md5
-p, --progress print progress messages
-n, --dont-scan only set options, don't actually scan
-T, --test test backend thoroughly
-A, --all-options list all available backend options
-h, --help display this help message and exit
-v, --verbose give even more status messages
-B, --buffer-size=# change input buffer size (in kB, default 32)
-V, --version print version information
Options specific to device `plustek:libusb:001:005':
Scan Mode:
--mode Lineart|Gray|Color [Color]
Selects the scan mode (e.g., lineart, monochrome, or color).
--depth 8|16bit [8]
Number of bits per sample, typical values are 1 for "line-art" and 8
for multibit scans.
--source Normal|Transparency|Negative [inactive]
Selects the scan source (such as a document-feeder).
--resolution 50..1200dpi [50]
Sets the resolution of the scanned image.
--preview[=(yes|no)] [no]
Request a preview-quality scan.
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 [103]
Width of scan-area.
-y 0..297mm [76.21]
Height of scan-area.
Enhancement:
--brightness -100..100% (in steps of 1) [0]
Controls the brightness of the acquired image.
--contrast -100..100% (in steps of 1) [0]
Controls the contrast of the acquired image.
--custom-gamma[=(yes|no)] [no]
Determines whether a builtin or a custom gamma-table should be used.
--gamma-table 0..255,... [inactive]
Gamma-correction table. In color mode this option equally affects the
red, green, and blue channels simultaneously (i.e., it is an intensity
gamma table).
--red-gamma-table 0..255,... [inactive]
Gamma-correction table for the red band.
--green-gamma-table 0..255,... [inactive]
Gamma-correction table for the green band.
--blue-gamma-table 0..255,... [inactive]
Gamma-correction table for the blue band.
Device-Settings:
--lamp-switch[=(yes|no)] [no]
Manually switching the lamp(s).
--lampoff-time 0..999 (in steps of 1) [300]
Lampoff-time in seconds.
--lamp-off-at-exit[=(yes|no)] [yes]
Turn off lamp when program exits
--warmup-time -1..999 (in steps of 1) [inactive]
Warmup-time in seconds.
--lamp-off-during-dcal[=(yes|no)] [inactive]
Always switches lamp off when doing dark calibration.
--calibration-cache[=(yes|no)] [no]
Enables or disables calibration data cache.
--speedup-switch[=(yes|no)] [inactive]
Enables or disables speeding up sensor movement.
--calibrate [inactive]
Performs calibration
Analog frontend:
--red-gain -1..63 (in steps of 1) [-1]
Red gain value of the AFE
--green-gain -1..63 (in steps of 1) [-1]
Green gain value of the AFE
--blue-gain -1..63 (in steps of 1) [-1]
Blue gain value of the AFE
--red-offset -1..63 (in steps of 1) [-1]
Red offset value of the AFE
--green-offset -1..63 (in steps of 1) [-1]
Green offset value of the AFE
--blue-offset -1..63 (in steps of 1) [-1]
Blue offset value of the AFE
--redlamp-off -1..16363 (in steps of 1) [-1]
Defines red lamp off parameter
--greenlamp-off -1..16363 (in steps of 1) [-1]
Defines green lamp off parameter
--bluelamp-off -1..16363 (in steps of 1) [-1]
Defines blue lamp off parameter
Buttons:
Type ``scanimage --help -d DEVICE'' to get list of all options for DEVICE.
List of available devices:
plustek:libusb:001:005
Thanks for the help data, just got the fix made, will be pushed when i get some more new bugs fixed
This should be fixed now, clone git and test it, be sure to clear your browser's cache and rescan for scanners edit: http://www.mediafire.com/download/bjtd14l3v2wufji/PHP-Server-Scanner-1.3-1-dev.tar.bz2 - dev copy
Tested your new version and it works out the box. This scanner web interface is the best!
By the way, it does not save the theme-settings from config-page ;-)
Check your browser's cookie settings, they must be disabled for the color changer effects to not work you could download the current dev version from the change log page and if you have any theme color suggestions please share, you can test any home made theme by uncommenting this line
Regarding the color changer and cookies, I found a reason. If I use the full qualified domain name of my pi the cookie is set and the color change is saved. If I use the hostname only, no cookie is set in chrome and IE complains about "intranet settings disabled". I have to do some more research about the problem.
Sounds like i am detecting the url wrong as far as the cookie is concerned, i would not suggest testing the login feature under that setup as it would make login in impossible
it works here under 10.0.0.50
, 127.0.0.1
, m4a79xtd-evo.local
, and my [snip].dyndns-home.com
Hi, first I would like to thank you for your great work with this scanner server interface! It is by far the best I have seen yet. And it works nearly out the box! I have a little Problem with my Canon CanoScan N670U: "scanimage --help" reports the --source parameter and the possible options for it but marks it as "inactive" --8<--8<--8<--8<-- --source Normal|Transparency|Negative [inactive] Selects the scan source (such as a document-feeder). --8<--8<--8<--8<--
Your script picks up the Option and set them while scanning. But the Scanner will not scan with the --source option set to anything and scanimage reports the following error message: "scanimage: attempted to set inactive option source"
I tried to understand your code and implement a workaround if the option is reported as inactive by scanimage but I'm not very good in PHP ;-)
Maybe you can implement some checks for the "inactive" statement? That would be great!
Kind regards, Andreas