PHP-Scanner-Server icon indicating copy to clipboard operation
PHP-Scanner-Server copied to clipboard

Command line scan

Open gameisfood opened this issue 8 years ago • 1 comments

Is it possible to scan from the command line, such that the scan is available to download via the webUI.

Basically the idea here is to have a physical button(executes the command) that will scan and store the image, and can later be downloaded via http.

Thanks

gameisfood avatar Apr 28 '16 09:04 gameisfood

the command to run a scan is on line 1260 https://github.com/GM-Script-Writer-62850/PHP-Scanner-Server/blob/master/index.php#L1260 the file naming structure is on lines 1299 to 1301 https://github.com/GM-Script-Writer-62850/PHP-Scanner-Server/blob/master/index.php#L1299-L1301 The command to create a preview image is on line 1319 https://github.com/GM-Script-Writer-62850/PHP-Scanner-Server/blob/master/index.php#L1319

if you imitate that and save it to the scans folder it will be visible via http just be sue the files are owned my www-data if you do that (use chown)

GM-Script-Writer-62850 avatar Apr 28 '16 10:04 GM-Script-Writer-62850