Giter VIP home page Giter VIP logo

scanserv's People

Contributors

cedr-x avatar chusitoo avatar danielo avatar henrymiller1 avatar sbs20 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

scanserv's Issues

Modify default parameters

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

Scanserv and Sane via Entware on dd-wrt

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?

About brightness & contrast

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?

For multi devices: www-data in "lp" group

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

openwrt app does not response

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)

PHP parse error

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.

I can't change to httpdusr

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.