-
Notifications
You must be signed in to change notification settings - Fork 17
PHP Scanner Server is correctly working when no region, but breaks if region is selected #33
Copy link
Copy link
Open
Description
Hi there,
I'm very happy to have found this git package. I've installed it on my Rpi 2, and it is successfully working when I try to scan a file. A sample log file when I don't select any region is as follows:
www-data@:/var/www/scanner$ lsusb -d '04b8:0849' # See Bug #13
Bus 001 Device 005: ID 04b8:0849 Seiko Epson Corp. Stylus SX205
www-data@:/var/www/scanner$ scanimage -d 'epson2:libusb:001:005' -l 0 -t 0 -x 215.9 -y 297.18 --resolution 75 --mode 'Color' --format=pnm > '/tmp/scandir0/scan_file0.pnm'
The output of this command unfortunately has to be suppressed to prevent errors :(
Run `sudo -u www-data scanimage -d 'epson2:libusb:001:005' -l 0 -t 0 -x 215.9 -y 297.18 --resolution 75 --mode 'Color' --format=pnm > '/tmp/scandir0/scan_file0.pnm'` for output info
www-data@:/var/www/scanner$ convert '/tmp/scandir0/scan_file0.pnm' -scale '450x471' 'scans/thumb/Preview_0_Dec_29_2015~18-19-34.jpg'
www-data@:/var/www/scanner$ convert '/tmp/scandir0/scan_file0.pnm' -alpha off 'scans/file/Scan_0_Dec_29_2015~18-19-34.png'
www-data@:/var/www/scanner$
But, if I select a region, it then fails to retrieve the region configuration:
www-data@:/var/www/scanner$ lsusb -d '04b8:0849' # See Bug #13
Bus 001 Device 005: ID 04b8:0849 Seiko Epson Corp. Stylus SX205
www-data@:/var/www/scanner$ scanimage -d 'epson2:libusb:001:005' -l 0 -t 0 -x 0 -y 0 --resolution 75 --mode 'Color' --format=pnm > '/tmp/scandir0/scan_file0.pnm'
The output of this command unfortunately has to be suppressed to prevent errors :(
Run `sudo -u www-data scanimage -d 'epson2:libusb:001:005' -l 0 -t 0 -x 0 -y 0 --resolution 75 --mode 'Color' --format=pnm > '/tmp/scandir0/scan_file0.pnm'` for output info
www-data@:/var/www/scanner$ echo 'Scan Failed...'
Scan Failed...
www-data@:/var/www/scanner$ echo 'Maybe this scanner does not report it size correctly, maybe the default scan size will work it may or may not be a full scan.'
Maybe this scanner does not report it size correctly, maybe the default scan size will work it may or may not be a full scan.
www-data@:/var/www/scanner$ echo 'If it is not a full scan you are welcome to manually edit your www-data@:/var/www/scanner/config/scanners.json file with the correct size.'
If it is not a full scan you are welcome to manually edit your www-data@:/var/www/scanner/config/scanners.json file with the correct size.
www-data@:/var/www/scanner$ echo 'Attempting to scan without forcing full scan'
Attempting to scan without forcing full scan
The output of this command unfortunately has to be suppressed to prevent errors :(
Run `sudo -u www-data echo 'Attempting to scan without forcing full scan'` for output info
www-data@:/var/www/scanner$ scanimage -d 'epson2:libusb:001:005' --resolution 75 --mode 'Color' --format=pnm > '/tmp/scandir0/scan_file0.pnm'
The output of this command unfortunately has to be suppressed to prevent errors :(
Run `sudo -u www-data scanimage -d 'epson2:libusb:001:005' --resolution 75 --mode 'Color' --format=pnm > '/tmp/scandir0/scan_file0.pnm'` for output info
www-data@:/var/www/scanner$ convert '/tmp/scandir0/scan_file0.pnm' -scale '450x471' 'scans/thumb/Preview_0_Dec_29_2015~18-20-32.jpg'
www-data@:/var/www/scanner$ convert '/tmp/scandir0/scan_file0.pnm' -alpha off 'scans/file/Scan_0_Dec_29_2015~18-20-32.png'
www-data@:/var/www/scanner$
As it can be seen on the log, it uses a region of 0,0,0,0, although it was selected a region of 0,0,421,471 as can be seen in the image.
Any hint of what might be causing this?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
