phpSANE no preview

I has configured a Ubuntu 16.04 like Scan server. The configuraton is OK and I can scan from another Linux machine. But I needed scan from a Windows machine.  The solution was install phpSANE but It didn’t work.

I install phpSane but the button “preview” didn’t work. I followed this steps but the problem persisted. To understand the problem, I opened apache’s log file (/var/log/apache/error.log) and I saw these error:

[Mon Dec 04 23:02:44.899907 2017] [:error] [pid 5960] [client 192.168.100.9:53950] PHP Fatal error: Uncaught UnexpectedValueException: DirectoryIterator::__construct(./output/): failed to open dir: No such file or directory in /var/www/html/phpsane/incl/files.php:56\nStack trace:\n#0 /var/www/html/phpsane/incl/files.php(56): DirectoryIterator->__construct('./output/')\n#1 /var/www/html/phpsane/phpsane.php(410): include('/var/www/html/p...')\n#2 {main}\n thrown in /var/www/html/phpsane/incl/files.php on line 56
/usr/bin/scanimage: unrecognized option '--jpeg-quality'

To solve the problem, I do the follow :

  1. Create the ‘output’ directory in PHP_SAME installation directory
  2. Modify ‘PHP_SAME/incl/config.php’ and coment the line:
$usr_opt = " --jpeg-quality 0";

This solve the problem.

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *