Command line scan
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
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)