GM-Script-Writer-62850 / PHP-Scanner-Server

Allows you to use your Linux install as a web based scanner server thus allowing you to scan with any web enabled device; Now supports server side printing! (As of 1.4.11)
59 stars 17 forks source link

Command line scan #35

Open gameisfood opened 8 years ago

gameisfood commented 8 years ago

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

GM-Script-Writer-62850 commented 8 years ago

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)