sbs20 / scanserv Goto Github PK
View Code? Open in Web Editor NEWscanserv is a simple web-based UI for SANE which allows you to share a scanner on a network.
License: GNU General Public License v2.0
scanserv is a simple web-based UI for SANE which allows you to share a scanner on a network.
License: GNU General Public License v2.0
Hi !
I would like to modify the default parameters.
Now, there are by exemple with Mode = Lineart but I would like Mode = Color.
Idem for Resolution...
How can I modify the default parameters ?
Best regards,
Jerome
I have installed sane via Entware (http://entware-3x.zyxmon.org/) on my D-Link 862L router. I have also installed php5, php5-cgi and lighttpd. I can serve php and html files from the router and I can view your scanserv page at router's-ip:81/scanserv .
The problem is that it does not do preview or scan a page. Sane works fine via SANEtwain and via command line (scanimage -L and scanimage --test)
I did give the entire www folder that lighttpd is using chmod 775 several times.
My config.php is:
class Config {
const IsTrace = false;
const TraceLineEnding = "
\n";
const Scanimage = "/opt/bin/scanimage";
const Convert = "/opt/usr/local/sbin/convert";
const BypassSystemExecute = false;
const OutputDirectory = "/opt/share/www/scanserv/output/";
const PreviewDirectory = "/opt/share/www/scanserv/preview/";
const MaximumScanWidthInMm = 216;
const MaximumScanHeightInMm = 297;
}
scanimage bin is actually located there. The problem is most likely that it can't find convert. I did search for convert in the default location (/usr/local/sbin/convert) and everywhere else. I can't find it. How do I install convert? Was it supposed to be installed with scanimage (when I installed sane-frontends and sane-backends and sane-libs)? If it was any idea on where I can find a copy of it for mips 3X kernel?
My scanner HP Deskjet 2130 's brightness (as well as contrast) range is 0 to 2000. 1000 provides with a good result. (It can be confirmed using scanimage
) But you see, this stuff does not support a number larger than 100. Maybe you can check scanimage
and determine the range dynamically?
Hi!
First of all, many thanks for this great frontend especially usable for small systems like ARMv61.
I have found that my www-data user can not access scanner device causing scanserv fails to get device and setup.
As multi devices (printer/scanner) such as Samsung CLX3180 series /dev/bus/usb/... belong to "lp" group, it's necessary to add www-data to "lp" with sudo usermod -a -G lp www-data
.
Afterwards You can check with sudo su -m www-data -c 'scanimage -L'
and device appears near the top.
Bests,
Hong
Hi. I have installed scanserv into /www/ss folder but when press preview or scan button nothing happens.
results of scanimage -L
device `epson2:libusb:001:051' is a Epson NX300 flatbed scanner
And I can scan into tiff by php script this way :
shell_exec("scanimage --resolution 300 --format=tiff >/mnt/hdd80/image_$(date +%Y%m%d-%H-%M).tiff");
One thing I have noticed in chrome's console :
"jquery.min.js:5 POST http://192.168.1.1:83/ss/api.js 404 (Not Found)"
...and I cannot find api.js file in scanserv directories
What should I check?
(On my router uhttpd listen on port 83 and works well with Luci ui)
(I cannot use scanservjs because on my openwrt version [vargalex v1.1.7 r35342] "nodejs" and "npm" are not available ) (vargalex v1.1.7 r35342 - based on BARRIER BREAKER r35342)
Hi,
I was trying this out and I see..
[Thu Apr 19 11:09:51.201699 2018] [fcgid:warn] [pid 51408] [client 1.2.3.4:58676] mod_fcgid: stderr: PHP Parse error: syntax error, unexpected ')', expecting '(' in /home/xxx/scanserv/classes_php/Scanimage.php on line 38, referer: https://1.2.3.4/scanserve/
I had a look but I'm not very knowledgable about PHP.
In the instructions related to QNAP 4.3 for installing SANE, I can't get this command working:
sudo -i -u httpdusr
I get this error:
sudo: unknown user: httpdusr
sudo: unable to initialize policy plugin
I tried several configurations on sudoers, nothing seems to work.
Please, help.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.